Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Timers
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Re: Timers
Miscellaneous
Thread ID:
00087434
Message ID:
00087631
Views:
25
>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
Map
View

Click here to load this message in the networking platform