Looking for a timer or clock object
mcstar
Posts: 144
Has anyone done a timer in spin or assembly? I'm looking for something that keeps track of at least seconds and minutes (maybe milliseconds) and that doesn't reset or loose time when the system clock recycles. I suppose I could use an external rtc but it should be possible to just keep a memory location up to date with elapsed time converted to seconds. I'm measuring real long times (hours) for a battery charger so I need to keep track of much longer time than the system clock can do.
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
News Flash!... Energizer Bunny arrested and charged with battery.
Best timer there is as far as i am concerned.
I would like to add, this timer works properly for measuring times less than 53 seconds.
(After 53 seconds there is a rollover of the systemcounter from max to zero)
For longer times (like hours and days) you can use
timer-object
from the obex
best regards
Stefan