$sec = Seconds
( )
Gives the time elapsed in seconds after the process has started.
Parameters
Return Value
Remarks
- This function tells the number of seconds the
process has used up.
- Seconds() function can be used
to find the elapsed time at different locations in the script. For
example, one can find the duration of a .wav file by calling the
seconds() function before and after playing the file and their
difference gives the value.
Example
:MAIN
answer 1
$start = seconds()
play "bgmusic.wav"
wait 0
$stop = seconds()
display "Duration " ($stop - $start)
;......
;......
hangup
goto MAIN