| Homepage | Demos | Overview | Downloads | Tutorials | Reference | Credits |
#include <TimeET.h>
Definition at line 23 of file TimeET.h.
Public Member Functions | |
| TimeET | Age () const |
| returns the difference between the current time and the time stored | |
| TimeET () | |
| constructor | |
| TimeET (long ms) | |
| constructor | |
| TimeET (long sec, long usec) | |
| constructor | |
| TimeET (double t) | |
| constructor, sepecify t seconds | |
| double | Value () const |
| returns the time stored as seconds in a double | |
| void | Set (long ms) |
| sets the time stored in the class | |
| void | Set (long sec, long usec) |
| sets the time stored in the class | |
| void | Set (double t) |
| sets the time stored in the class | |
| void | Set () |
| sets the time to the current time | |
| bool | operator< (long ms) |
| for comparing times | |
| bool | operator< (double t) |
| for comparing times | |
| bool | operator< (const TimeET &t) |
| for comparing times | |
| TimeET | operator+ (const TimeET &t) const |
| for doing doing math with time | |
| TimeET | operator+= (const TimeET &t) |
| for doing doing math with time | |
| TimeET | operator- (const TimeET &t) const |
| for doing doing math with time | |
| TimeET | operator-= (const TimeET &t) |
| for doing doing math with time | |
Static Public Attributes | |
| const long | us_per_sec = 1000000 |
| conversion factor for microseconds to seconds | |
| const long | ms_per_sec = 1000 |
| conversion factor for milliseconds to seconds | |
| const long | us_per_ms = 1000 |
| conversion factor for microseconds to milliseconds | |
Protected Attributes | |
| timeval | tv |
| stores the time | |
Static Protected Attributes | |
| timezone | tz |
| stores the timezone (not really used) | |
Friends | |
| std::ostream & | operator<< (std::ostream &o, const TimeET &t) |
| lets the class be displayed easily | |
|
|
constructor
|
|
|
constructor
|
|
||||||||||||
|
constructor
|
|
|
constructor, sepecify t seconds
|
|
|
returns the difference between the current time and the time stored
Definition at line 45 of file TimeET.h. References TimeET(). |
|
|
for doing doing math with time
Definition at line 93 of file TimeET.h. References TimeET(), tv, timeval::tv_sec, timeval::tv_usec, and us_per_sec. |
|
|
for doing doing math with time
Definition at line 99 of file TimeET.h. References tv, timeval::tv_sec, timeval::tv_usec, and us_per_sec. |
|
|
for doing doing math with time
Definition at line 105 of file TimeET.h. References TimeET(), tv, timeval::tv_sec, timeval::tv_usec, and us_per_sec. |
|
|
for doing doing math with time
Definition at line 115 of file TimeET.h. References tv, timeval::tv_sec, timeval::tv_usec, and us_per_sec. |
|
|
for comparing times
Definition at line 86 of file TimeET.h. References tv, timeval::tv_sec, and timeval::tv_usec. |
|
|
for comparing times
Definition at line 83 of file TimeET.h. References Value(). |
|
|
for comparing times
Definition at line 79 of file TimeET.h. References ms_per_sec, tv, timeval::tv_sec, timeval::tv_usec, and us_per_ms. |
|
|
sets the time to the current time
|
|
|
sets the time stored in the class
Definition at line 60 of file TimeET.h. References tv, timeval::tv_sec, timeval::tv_usec, and us_per_sec. |
|
||||||||||||
|
sets the time stored in the class
Definition at line 56 of file TimeET.h. References tv, timeval::tv_sec, timeval::tv_usec, and us_per_sec. |
|
|
sets the time stored in the class
|
|
|
returns the time stored as seconds in a double
Definition at line 48 of file TimeET.h. References tv, timeval::tv_sec, timeval::tv_usec, and us_per_sec. |
|
||||||||||||
|
lets the class be displayed easily
|
|
|
conversion factor for milliseconds to seconds
|
|
|
stores the time
|
|
|
stores the timezone (not really used)
|
|
|
conversion factor for microseconds to milliseconds
|
|
|
conversion factor for microseconds to seconds
|
|
Tekkotsu v1.4 |
Generated Sat Jul 19 00:09:13 2003 by Doxygen 1.3.2 |