I'm trying to get the time elapsed for an action. I get it, but it's wrong and not exactly the way I'd like.
I've seen the lessons:
How to use date and time in Rev http://lessons.runrev.com/s/lessons/m/4 ... ime-in-rev
Storing a modification timestamp http://lessons.runrev.com/s/lessons/m/2 ... -timestamp
Here is the code:
Code: Select all
put the seconds into theStartTime -- theStartTime
send "doYourJob lesData" to me -- 200 values to check format and order
put the seconds into theActualTime -- greater than theStartTime
put theActualTime - theStartTime into theTimeElapsed -- theTimeElapsed
convert theTimeElapsed from seconds to time --
put theTimeElapsed into field "leTemps" -- gives me allays 1:04 AM which is wrong!
The routine ended exactly at 21:31:28 so 4'28''.
And I always get 1:04 AM ?!?
I've tried to deal with system time , short system time , etc. without sucess
