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

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.

Copy

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.

Copy

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:

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.

Copy

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.

Copy

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