// IBLTime.hxx - system-independent time from epoch // AK20100820 From G4beamline v2.03 BLTime.hh #ifndef MYBLTIME_HH #define MYBLTIME_HH namespace COMET { /** IBLTime - get time since epoch. * Entire class could be inline, but is not to prevent bad optimization. **/ class IBLTime { public: /// time() returns time in seconds since epoch (1970) static long time(); /// timems() returns the time in milliseconds since epoch (1970) static long timems(); /// timeus() returns the time in microseconds since epoch (1970) static long long timeus(); /// sleepms() will sleep for a specified number of milliseconds. static void sleepms(int ms); }; } #endif // MYBLTIME_HH