#include <msec.h>
Definition at line 79 of file msec.h.
Public Member Functions | |
| msec () | |
| Constructor, sets the time to the current system time. | |
| msec (const msec &in_msec) | |
| Constructor using another msec object. | |
| msec (const int sec, const int milsec) | |
| Constructor using seconds and milli sconds. | |
| msec & | operator-= (const long millisec) |
| msec & | operator-= (const timeval &t1) |
| msec & | operator+= (const long millisec) |
| msec & | operator+= (const timeval &t1) |
| msec & | operator= (const msec &t) |
| msec & | operator= (const timeval &t1) |
| operator unsigned long () const | |
| Use as an unsigned long. | |
| void | refresh () |
| Set the time to the current system time. | |
| void | SetInfinite () |
| Set the object out into the future as far as possible. | |
| int | IsInfinite () const |
| Check if the time is infinite. | |
| void | GetDelta (const msec &future, timeval &timeout) const |
| Get the difference between this and the given time. | |
| void | GetDeltaFromNow (timeval &timeout) const |
| Get the difference between this object and the current system time. | |
| const char * | get_printable () const |
| Return the time as printable string. | |
Private Attributes | |
| timeval | m_time |
| char | m_output_buffer [MSECOUTBUF] |
Friends | |
| DLLOPT friend int | operator== (const msec &t1, const msec &t2) |
| DLLOPT friend int | operator!= (const msec &t1, const msec &t2) |
| DLLOPT friend int | operator< (const msec &t1, const msec &t2) |
| DLLOPT friend int | operator> (const msec &t1, const msec &t2) |
| DLLOPT friend int | operator<= (const msec &t1, const msec &t2) |
| DLLOPT friend int | operator>= (const msec &t1, const msec &t2) |
|
|
Constructor, sets the time to the current system time.
|
|
|
Constructor using another msec object.
|
|
||||||||||||
|
Constructor using seconds and milli sconds.
|
|
|
Return the time as printable string.
|
|
||||||||||||
|
Get the difference between this and the given time. If future is before this objects time, "timeout" will be set to zero.
Referenced by GetDeltaFromNow(). |
|
|
Get the difference between this object and the current system time. If the system time is before this objects time, "timeout" will be set to zero.
Definition at line 161 of file msec.h. References GetDelta(). |
|
|
Check if the time is infinite.
|
|
|
Use as an unsigned long.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 116 of file msec.h. References m_time. |
|
|
Set the time to the current system time.
|
|
|
Set the object out into the future as far as possible.
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
|
|
|
|
Definition at line 170 of file msec.h. Referenced by operator=(). |
1.3.2