Skip to main content

Timer

Use this command to start or stop a timer within a procedure. This command is used in conjunction with the TIMERELAPSED function. The timer is local to the procedure, other timers may exist within nested procedures. 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:

TIMER START TIMER STOP

where:

Value Description

START

Starts the timer in a procedure document. If TIMER START is called multiple times before a TIMER STOP command, the timer is restarted.

STOP

Stops the timer in a procedure document.

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.