RISC OS Open
A fast and easily customised operating system for ARM devices
ROOL
Home | News | Software | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account

Page "Alan Robertson (52)" does not exist. Please create it now, or hit the "back" button in your browser.

The Window Manager Time

Programmer's Reference Manuals
» Part 7 - The Desktop
» The Window Manager
» Technical Details
» Time

Overview

RISC OS actually has two clocks;

  1. the hardware clock
  2. the software clock.

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.

Usage

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

Revised on February 7, 2010 21:10:43 by GavinWraith (26)? (127.0.0.1)
Edit | Back in time (2 revisions) | See changes | History | Views: Print | Source | Linked from: The Window Manager Technical Details

Search the Wiki

Commercial use

For commercial enquiries, please contact the owners of RISC OS, Castle Technology Ltd.

ROOL Store

The official C/C++ Development kit and more here.

Donate! Why?

Help ROOL make things happen – please consider donating!

Navigation

  • Home Page
  • All Pages
  • Recently Revised
  • Authors
  • Feeds
Site design © RISC OS Open Limited 2011 except where indicated
The RISC OS Open Instiki theme is based on Insitki's default layout

Valid XHTML 1.0  |  Valid CSS

Instiki 0.19.1(MML+)
This site runs on Rails

Hosted by Arachsys