Public Member Functions | |
Time () | |
Time (const Time &t) | |
Time (long secs, long micros) | |
Time (Real secs) | |
virtual | ~Time () |
virtual String | className () const |
bool | isPast () const |
Time & | operator= (const Time &t) |
bool | operator== (const Time &t) const |
Time & | operator-= (const Time &t) |
Time & | operator+= (const Time &t) |
Time & | operator *= (Real s) |
Time & | operator/= (Real s) |
Real | seconds () const |
bool | equals (const Time &t, Time eps=Time(0, 10)) |
void | serialize (Serializer &s) |
read or write object state to Serializer | |
virtual bool | isSameKindAs (const Object &) const |
Static Public Member Functions | |
const Time & | now () |
bool | isPast (const Time &t) |
bool | less (const Time &t1, const Time &t2) |
bool | greater (const Time &t1, const Time &t2) |
void | sleep (const Time &t) |
void | sleep (long secs, long micros) |
void | sleep (Real secs) |
long | timeResolution () |
Public Attributes | |
long | secs |
long | micros |
Static Public Attributes | |
const long | microsPerSec = 1000000 |
Protected Member Functions | |
void | normalize () |
Static Protected Member Functions | |
bool | equal (const Time &t1, const Time &t2) |
Static Protected Attributes | |
Time * | time |
long | baseSecs |
long | baseMicros |
Time | lastNow |
long | resolution |
|
Referenced by sleep(). |
|
|
|
|
|
|
|
|
|
return the name of the object's class type. Must be defined by derived classes. Implements base::Object. Definition at line 45 of file Time. References base::String. |
|
Definition at line 85 of file Time. Referenced by operator==(). |
|
|
|
|
|
|
|
|
|
|
|
Referenced by isPast(). |
|
|
|
Referenced by isPast(). |
|
Referenced by operator/=(). |
|
|
|
|
|
Definition at line 54 of file Time. References operator *=(), and base::Real. |
|
|
|
Definition at line 50 of file Time. References equal(). |
|
Definition at line 56 of file Time. References micros, microsPerSec, base::Real, and secs. |
|
read or write object state to Serializer
Referenced by base::Serializer::operator()(). |
|
Definition at line 69 of file Time. References base::Real, sleep(), and Time(). |
|
|
|
Referenced by sleep(). |
|
Definition at line 71 of file Time. References resolution. |
|
|
|
|
|
|
|
Definition at line 75 of file Time. Referenced by equal(), base::operator<<(), operator=(), seconds(), and Time(). |
|
Definition at line 58 of file Time. Referenced by seconds(). |
|
Definition at line 83 of file Time. Referenced by timeResolution(). |
|
Definition at line 75 of file Time. Referenced by equal(), base::operator<<(), operator=(), seconds(), and Time(). |
|
|