GetTimerValue Function

Description:

This function returns the last measured value of a specified timer.
Returns 0 if the timer does not exist or is not stopped.

Format:

result = GetTimerValue(TimerName)

Parameter:

TimerName

A string expression defining the timer name.

Example:

INTEGER iTimerValue;

Start Timer "MyTimer";

Wait 500;

iTimerValue = GetTimerValue("MyTimer");
log "TimerValue = " + ToString(iTimerValue);

Wait 500;

End Timer "MyTimer";

iTimerValue = GetTimerValue("MyTimer");
log "TimerValue = " + ToString(iTimerValue);

Output:

TimerValue = 0
TimerValue = 1000





Go back to the Learning center:


Copyright © AgileLoad. All rights reserved.
Agile Load testing tool| Contact AgileLoad | Terms of Use | Sitemap