Forum Discussion

Rammherz's avatar
Rammherz
Occasional Contributor
7 years ago

Problem with finding TimeInterval when start time and finish time are in different dates

Hi all! I use the following code to measure time needed for test execution nTestStartTime = aqDateTime.Time(); nTestExecutionTime = aqConvert.DateTimeToFormatStr(aqDateTime.TimeInterval(nTestStartT...
  • tristaanogre's avatar
    7 years ago

    Using aqDateTime.Time() simply records the time of day.  So, if the time spans more than 24 hours, this isn't going to account for the span in days.  Replace aqDateTime.Time() with aqDateTime.Now() and try again.