4 Replies Latest reply: Apr 24, 2015 7:40 PM by Eric Hirst RSS

    TRACE elapsed timespan in a QVW script

    Eric Hirst

      Hi, I'm trying to the following in a QVW script, and am missing something in how I calculate the duration:

       

      LET vStartTime = Now();

      // [Do something that takes a few minutes]

      LET vEndTime = Now();

      LET vDuration = $(vEndTime) - $(vStartTime);  // SCRIPT ERROR

      TRACE Elapsed time: $(vDuration);

       

      I would have thought that Using TRACE to capture the Elapsed Reload time would have answered this question, but it's missing the timespan/duration/elapsed part.  I've tried using the Interval() function, but so far without success.


      Can anyone correct this script?  Thanks.