Skip to main content
insightsoftware Documentation insightsoftware Documentation
{%article.title%}
Published:
Was this article helpful?
0 out of 0 found this helpful

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

Published:

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

For an optimal Community experience, Please view on Desktop