Can’t say I’ve seen a way to do that. I’d set the timer for 1 second and decrement a count from 300 with each function call. That way you can just stop/start the timer and you’ll be within a second of the correct time when the counter hits 0.
Gre7g
···
On 6/3/08, Astan Chee stanc@al.com.au wrote:
I have a wxTimer hooked to a particular function. The wxTimer gets activated every 5 minutes. I was wondering if there is a command to pause the time so that when it is stopped/paused 3 minutes after the function is called, it doesnt have to wait for another 5 minutes for the function to be called if restarted but only 2 minutes.
Is there an example somewhere to do this? Im not sure if wxTimer is the one I want to use. I just want to call a certain function every x minutes and be able to “pause” the mechanism that controls when the function is called.