EventTime primitive, returns current time as a 64-bit number.
More...
#include <EventTime.h>
List of all members.
Detailed Description
EventTime primitive, returns current time as a 64-bit number.
Definition at line 53 of file EventTime.h.
Constructor & Destructor Documentation
EventTime::EventTime |
( |
mytime_t |
sec, |
|
|
long |
usec | |
|
) |
| | |
EventTime::~EventTime |
( |
|
) |
|
EventTime::EventTime |
( |
const EventTime & |
|
) |
[inline, private] |
Member Function Documentation
Definition at line 68 of file EventTime.cpp.
00069 {
00070 mytime_t t;
00071 #ifdef _WIN32
00072 FILETIME ft;
00073 GetSystemTimeAsFileTime(&ft);
00074 t = ft.dwHighDateTime;
00075 t = t << 32;
00076 t += ft.dwLowDateTime;
00077 t /= 10;
00078 #else
00079 struct timeval tv;
00080 struct timezone tz;
00081 gettimeofday(&tv, &tz);
00082 t = tv.tv_sec;
00083 t *= 1000000;
00084 t += tv.tv_usec;
00085 #endif
00086 return t;
00087 }
EventTime::operator mytime_t |
( |
|
) |
[inline] |
bool EventTime::operator< |
( |
const EventTime & |
x |
) |
const |
Member Data Documentation
The documentation for this class was generated from the following files: