#include <MNTimeval.h>
Public Types | |
enum | Now { NOW } |
Public Member Functions | |
Timeval () | |
Timeval (const Timeval &tv) | |
Timeval (const C_timeval &tv) | |
Timeval (int microseconds) | |
Timeval (size_t microseconds) | |
Timeval (int64_t microseconds) | |
Timeval (double seconds) | |
Timeval (Now) | |
Timeval & | operator= (const Timeval &tv) |
Timeval & | operator= (int microseconds) |
Timeval & | operator= (size_t microseconds) |
Timeval & | operator= (int64_t microseconds) |
Timeval & | operator= (double seconds) |
Timeval & | operator= (Now) |
Timeval & | operator+= (unsigned int tv) |
Timeval & | operator+= (Now) |
Timeval & | operator-= (unsigned int tv) |
Timeval & | operator-= (const Timeval &tv) |
size_t | asUsec () const |
int64_t | asUsec64 () const |
double | asSec () const |
void | asNPT (ostream &ostr) const |
Static Public Attributes | |
const size_t | MAX_USEC = 1000000 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Write the timeval format into the output stream in a complete NPT (normal play time) string of the form hh:mm:ss.dd where dd is a fraction of a second. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|