official_raghu
12 years agoOccasional Contributor
Capturing milliseconds' difference between events
Hi,
We are involved in performance testing of a .net application, wherein we need to find the time gap between the start and end of an event. We are using aqDateTime.Now at the start and end of the events and measuring the difference. However, there are some events which happen within the time span of a second, and we are unable to capture the time gap between the start and end. Is there a technique / provision in TestComplete to capture the time gap between events in millisecocnds? I request the pros to kindly enlighten me on this...
We are involved in performance testing of a .net application, wherein we need to find the time gap between the start and end of an event. We are using aqDateTime.Now at the start and end of the events and measuring the difference. However, there are some events which happen within the time span of a second, and we are unable to capture the time gap between the start and end. Is there a technique / provision in TestComplete to capture the time gap between events in millisecocnds? I request the pros to kindly enlighten me on this...
- Well, I lied, I didn't search properly first :)
The solution for VBScript looks like this
Dim tFrom, tTo, tDif
tFrom = Timer
aqUtils.Delay 100
tTo = Timer
tDif = Int((tTo-tFrom) * 1000)
Log.Message tDif