#include "config.h"#include <sys/time.h>#include <boost/thread/mutex.hpp>#include "Exception.h"#include "mathutil.h"#include "util.h"

Go to the source code of this file.
Functions | |
| timeval | GetTimeOfDayWrapper () |
| void | pcce::SleepMs (tMillisecond time) |
| Cross-platform sleep function. | |
| tMillisecond | pcce::GetTimeSinceStart () |
| Returns the time in milliseconds since the application was started. | |
Variables | |
| static boost::mutex | gCurrentMutex |
| static tMillisecond | gLastTime = 0 |
| static timeval | gStartTime = GetTimeOfDayWrapper() |
| timeval GetTimeOfDayWrapper | ( | ) |
Definition at line 121 of file util.cpp.
References PCCE_CHECK.
00121 { 00122 timeval time; 00123 PCCE_CHECK(gettimeofday(&time, NULL) == 0, "gettimeofday failed"); 00124 return time; 00125 }
boost::mutex gCurrentMutex [static] |
tMillisecond gLastTime = 0 [static] |
timeval gStartTime = GetTimeOfDayWrapper() [static] |
1.5.5