2 * psychlops_io_clock.h
\r
3 * Psychlops Standard Library (Universal)
\r
5 * Last Modified 2005/12/19 by Kenchi HOSOKAWA
\r
6 * (C) 2005 Kenchi HOSOKAWA, Kazushi MARUYA, Takao SATO
\r
9 #ifndef HEADER_PSYCHLOPS_DEVICES_CLOCK
\r
10 #define HEADER_PSYCHLOPS_DEVICES_CLOCK
\r
12 #define PSYCHLOPS_CLOCK_API_PLATFORM
13 #include "../../platform/psychlops_platform_selector.h"
\r
14 #undef PSYCHLOPS_CLOCK_API_PLATFORM
\r
17 namespace Psychlops {
\r
23 static CLOCK_UNIT clocks_per_a_milisecond_;
\r
26 Clock(CLOCK_UNIT native_clock);
\r
29 static void initialize();
\r
33 // Clock operator -();
\r
34 Clock operator +(Clock &rhs);
\r
35 Clock operator -(Clock &rhs);
\r
36 //Clock operator *(double &rhs);
\r
37 //Clock operator /(double &rhs);
\r
38 //Clock operator %(double &rhs);
\r
39 Clock & operator +=(Clock &rhs);
\r
40 Clock & operator -=(Clock &rhs);
\r
41 //Clock & operator *=(double &rhs);
\r
42 //Clock & operator /=(double &rhs);
\r
43 bool operator ==(Clock &rhs);
\r
44 bool operator !=(Clock &rhs);
\r
45 bool operator >(Clock &rhs);
\r
46 bool operator <(Clock &rhs);
\r
47 bool operator >=(Clock &rhs);
\r
48 bool operator <=(Clock &rhs);
\r
52 long Gettime_ms(); // obsolete
\r
55 } /* <- namespace Psycholops */
\r