![]() ![]() I don't see that happening, unless there is a complete failure of the program (which then it doesn't matter!). The only problem I see is if my variable always is 0, the loop will run forever. When the minute timer fires, disable the minute timer (so it only runs once). If the variable = 0, enable the minute timer. When the hourly timer fires, check the variable. ie, if I start the program at 5:00, let it run for 45 minutes, shut it down, then open it 5 minutes to 6:00, the timer will fire at 6:55 - for a total combined 115 minutes, long past the desired "send data every hour".Ĭreate an hourly timer, create a minute timer. You can also pause the timer at any time using the 'Pause' button. You can reset the timer at any time using the 'Reset' button. The timer will alert you when it expires. ![]() Press the 'Start' button to start the timer. The reason for this, is I want to be able to shut the program down, and let it "pick back from where it left off". A countdown timer for 1 hour and 2 minutes. I don't care if it's delayed 2, 3 minutes waiting for a variable. If I launch the program at 1:23, then if I set a timer to run every hour, I'm guessing my timer will fire at 6:23. If it hasn't, I want to wait a specific amount of time (9 seconds, 1 minute, etc.).īut I want the function to run exactly (or thereabouts) at 6:00 PM, for instance. However, inside the function, I need to check and see if a variable was set. I'd rather do the following (not proper code):īasically, I'd like to run a specific function every hour. Online timer with pre-set countdown time for 1 hours 57 minutes. ![]() From what I can understand timers run in the background, counting until a time interval passes. 1 hour 57 minute equal 7020000 Milliseconds. A countdown timer for 1 hour and 38 minutes. I seem to be having some trouble using timers. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |