timerStart()

Purpose

Starts a timer.

Syntax

timerStart( <timer_id>,<string> )

where:

Description

Starts the timer identified as <timer> and logs the message provided in <string>.

Timers must be created with createTimer() before being started. Several timers can run simultaneously.

If an exception is thrown in a timerStart() 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");

  //then start the timers.

  timerStart(timer1,"Start 1");

  timerStart(timer2,"Start 2");

  timerStart(timer3,"Start 3");

Related Topics

createTimer()timerReportEllapsedTime()verifyEllapsedTime()