General information
Category:
Coding, syntax & commands
>How do I calculate how long a timer has been going?
I am guessing here you are looking for a cumulative measure. Try something like this:
Create a custom property called TotalTime and initialize it to 0
In the Timer() Event - issue this code:
This.TotalTime = This.TotalTime + This.Interval
You will need to account for things like a nodefault in the Timer(). You will still want to track how long the Timer has been active. Also, you will want to place code in the Reset(). Something like: This.TotalTime = 0.
HTH,
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only