
|
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 51 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 61 of file EventTime.cpp. 00062 {
00063 mytime_t t;
00064 #ifdef _WIN32
00065 FILETIME ft;
00066 GetSystemTimeAsFileTime(&ft);
00067 t = ft.dwHighDateTime;
00068 t = t << 32;
00069 t += ft.dwLowDateTime;
00070 t /= 10;
00071 #else
00072 struct timeval tv;
00073 struct timezone tz;
00074 gettimeofday(&tv, &tz);
00075 t = tv.tv_sec;
00076 t *= 1000000;
00077 t += tv.tv_usec;
00078 #endif
00079 return t;
00080 }
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:
|