$sec = Seconds
Gives the time elapsed in seconds after the process has started.
- 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.
$start = seconds()
$stop = seconds()
display "Duration " ($stop - $start)