Showing changes from revision #3 to #4:
Added | Removed | Changed
RISC OS actually has two clocks;
Both clocks are timed independently and can diverge by a few seconds per day. The clocks are only re-synchronised when the computer hardware is reset.
Tasks that require the use of time and date settings should always use the time provided by the software clock. The software clock measures time in centi-seconds.
Note: Times are represented using 32-bits, and it should be remembered that the number used can become negative (when bit 31 is set). So when comparing times, the expression
(new_time – old_time) > 100
is better than
new_time > old_time + 100