Clib Get Difference in Seconds Method
The Clib Get Difference in Seconds method returns the difference in seconds between two times.
Format
Clib.difftime(timeInt1, timeInt0)
The following table describes the arguments for the Clib Get Difference in Seconds method.
Argument | Description |
---|---|
timeInt0 |
An integer time value that this method returns. |
timeInt1 |
An integer time value that this method returns. |
Example
The following example displays the difference in seconds between two times:
function difftime_Click ()
{
var first = Clib.time();
var second = Clib.time();
TheApplication().RaiseErrorText("Elapsed time is " +
Clib.difftime(second, first) + " seconds.");
}