timestamp
Sets the timestamp or returns the delta timestamp.
Available in:
Apps (win) |
Apps (char) |
Reportwriter |
RPC |
Standalone PL |
X |
X |
X |
X |
X |
Syntax
numeric timestamp()
Description
If the timestamp() call is not part of an expression, then it sets
the current timestamp. Otherwise it returns the delta timestamp in seconds
and sets a new one. The granularity of the result is in microseconds.
Example
Displays the application run time for 10000 operations:
timestamp();
for (i=10000;i;i--) j = i * i * i * i;
printf("10000 operations took "^^timestamp()^^" seconds";