Topic: StopWatch function
I want to be able to start a named "StopWatch" and subsequently log splits to the named stopwatch.
Pseudo-Code:
SiAuto.Main.CreateStopWatch( "MyStopWatch" );
SiAuto.Main.LogStopWatchSplit( "MyStopWatch", "At the begining of X" );
SiAuto.Main.LogStopWatchSplit( "MyStopWatch", "At the ending of X" );
SiAuto.Main.LogStopWatchSplit( "MyStopWatch", "At the begining of Y" );
SiAuto.Main.LogStopWatchSplit( "MyStopWatch", "At the ending of Y" );
SiAuto.Main.EndStopWatch( "MyStopWatch");
each split logs the name, the message and the duration in millisecs since the stopwatch started. Ideally it could log the duration since the last split as well.
Create and End would log the absolute time and the duration.
How can I accomplish something like this with the existing API.
Thanks so much
Jim
