Simple Timing Question
Posted on 2006-11-24
I have a short procedure that needs to run every x seconds, where x ranges anywhere from 1 to 100,000. The logic is something like:
*** pseudo code ***
When TimeSinceLastRun reaches x seconds
TimeSinceLastRun = 0
*** end *****
The simple idea is to run the procedure every x seconds. I just don't know how to code it.
I noticed in VG an object called a Timer, but I don't know how it works.
As always, any light shed on this will be appreciated and recognized with points.