Coundown timer
Posted: Thu Aug 18, 2011 12:54 am
I am writing an app that is basically several user settable countdown timers with alarms.
I have taken the approach of using nested if statements to evaluate the number of minutes hours and days and make adjustments every 60 seconds. this approach has my brain tied in knots. It only seems natural to do this instead with nested repeat loops, but doing so seems to require a wait command which ties up the system and is therefore not good.
I have been toying with the idea of working from the system clock, but this would be difficult since the timer needs to be able to count down days as well as hours and minutes, and calender variances make that a problem to code.
so my question is, does runrev have any kind of built in date difference and/or date addition function. for that matter does it have a built in timer function that I am missing?
I have taken the approach of using nested if statements to evaluate the number of minutes hours and days and make adjustments every 60 seconds. this approach has my brain tied in knots. It only seems natural to do this instead with nested repeat loops, but doing so seems to require a wait command which ties up the system and is therefore not good.
I have been toying with the idea of working from the system clock, but this would be difficult since the timer needs to be able to count down days as well as hours and minutes, and calender variances make that a problem to code.
so my question is, does runrev have any kind of built in date difference and/or date addition function. for that matter does it have a built in timer function that I am missing?