Forum Discussion
HKosova
13 years agoSmartBear Alumni (Retired)
Hi Eyme,
To avoid the issue, please make sure to use only one Stop() call per each Start() call, as follows:
Our support engineers will review your case and get back to you as soon as they can.
I have opened a request as mentioned,request ID: M0100908.
I've reproduced the issue - it happens when Stop() is called twice rather than once. I've forwarded this to our developers for investigation. Thanks for bringing this to our attention!
I tried the function using stop instead of split but unfortunately it still didn't work.
var elapsetime = StopWatchObj.Stop();
It still returns double the time, eg. 3.2 hrs in place of 1.6 hrs.
To avoid the issue, please make sure to use only one Stop() call per each Start() call, as follows:
var StopWatchObj = HISUtils.StopWatch;
StopWatchObj.Start();
...
var elapsetime = StopWatchObj.Stop();
...
Log.Message(elapsetime);
Related Content
Recent Discussions
- 2 days ago