TimerStop

Parent Previous Next

TimerStop

Description: the method completes the countdown and returns the TimeSpan value with the result (for example, 7,132157, which means 7 seconds and 132157 milliseconds)

Syntax: TimerStop(DateTime start)

Return value: TimeSpan


Example:

Tester tester = new Tester(browserForm);

DateTime start = await tester.TimerStart();

await tester.TestBeginAsync();

...

await tester.TestEndAsync();

TimeSpan result = await tester.TimerStop(start);

tester.ConsoleMsg("Time " + result.TotalSeconds);

Created with the Personal Edition of HelpNDoc: Full-featured Help generator