1 = TimeBase : low-level system timers
3 The idea is to expose the low-level system timers to Ruby. It is useful to
4 implement schedulers for example.
6 Author:: Jonas Pfenniger <zimbatm@oree.ch>
7 Copyright:: Copyright (c) 2007 Jonas Pfenniger
8 License:: Distributed under the terms of the MIT license. (See LICENSE file)
10 == Linux/POSIX support (Beta)
12 TODO: implement CLOCK_PROCESS_CPUTIME_ID, CLOCK_THREAD_CPUTIME_ID
14 Clocks:: TimeBase::RealtimeClock and TimeBase::MonotonicClock
16 == Windows support (Alpha)
18 Clocks:: TimeBase::WindowsClock
20 TODO: implement GetSystemTimeAsFileTime and NTSetTimerResolution
23 * http://www.gamedev.net/reference/programming/features/timing/
24 * http://www.lochan.org/2005/keith-cl/useful/win32time.html
26 == Java support (Alpha)
28 Clocks:: TimeBase::JavaClock
30 Not much available, some RFC(which one?) should fix that in future Java
33 TODO: implement currentTimeMillis() (should be more precise)
36 * http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6440250
41 * Solaris (see gethrtime())
46 Possible issues to investigate:
47 * Different times on SMP
50 Various scales of time
52 Create distinc utilities to avoid interpretation problems :
53 * system_time | user_time : Presentation
54 * timer, callback, periodic timer