ZenoTest — Windows Desktop UI Test Automation
ZenoTest is a lightweight and powerful tool for Windows desktop UI test automation. Record, generate, and run automated tests efficiently for WPF, WinForms, and native apps.

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");
}
#include CloseAUT Console mode DoubleClick Execute Fail File GetAUTFileVersion GetAUTProductVersion GetAUTQtVersion GetAUTSuspectedCompiler GetAUTSuspectedFramework GetCurrentWorkingDir GetName GetQtProperty GetText GetValue HasFocus IsAUT64Bit IsChecked IsEnabled IsVisible LeftMouseClick LeftMouseDown LeftMouseUp MiddleMouseDown MiddleMouseUp MouseWheel Pass Print RightMouseClick RightMouseDown RightMouseUp Script Language SendKeys SetFocus SetQtProperty Sleep StartAUT string TimerStart TimerStop TimerVerifyLess vec2d VerifyContains VerifyEndsWith VerifyEqual VerifyExists VerifyGreater VerifyLess VerifyNotEqual VerifyNotExists VerifyScreenCompareEdgeBased VerifyScreenComparePixelExact VerifyStartsWith