TimerStop
void TimerStop(String name = "Default")Description
Stops the timer with the specified name and logs the elapsed time in milliseconds.
If no matching timer exists, a warning will be logged.
If name is omitted, the default timer ("Default") will be stopped.
This method also returns the elapsed time as an int,
so you can use it in comparisons or verifications.
Parameter
- name - (optional) The name of the timer to stop.
Example
void main()
{
TimerStart();
Sleep(300);
int duration = TimerStop();
VerifyLess(duration, 400);
TimerStart("DataLoad");
Sleep(100);
TimerStop("DataLoad");
}