Skip to main content

TimerElapsed

Use this function to return the elapsed time from the last TIMER START statement in a procedure. The time is returned in seconds, accurate to 3 decimal places. This function is used in conjunction with the TIMER START|STOP command. The TIMER and TIMERELAPSED command and function can be used to provide useful performance and benchmarking data without the overhead of the HISTORY file.

Syntax:

TIMERELAPSED()

Syntax example:

TIMER START

// some code here

SET VARIABLE nTime = TIMERELAPSED()

// some code here

SET VARIABLE nTime = TIMERELAPSED()

TIMER START

// some code here

TIMER STOP

Was this article helpful?

We're sorry to hear that.