createTimer()
Purpose
Creates a timer.
Syntax
createTimer( <string> )
where:
<string> is a message
Description
Several timers can be created. When a timer is created, createTimer() returns an identification number for the timer (integer) for use with other timer-related functions.
Timers must be started with the timerStart() method.
The <string> message is logged and displayed in the test report.
If an exception is thrown in a createTimer() method, an error is logged and the test continues.
Example
int timer1, timer2, timer3;
int any = 10;
timer1 = createTimer("first timer created");
timer2 = createTimer("second timer created");
timer3 = createTimer("third timer created");
Related Topics
timerStart() | timerReportEllapsedTime() | verifyEllapsedTime()