| 46 | } |
| 47 | |
| 48 | int64_t GetTimeMicros() |
| 49 | { |
| 50 | int64_t now = (boost::posix_time::microsec_clock::universal_time() - |
| 51 | boost::posix_time::ptime(boost::gregorian::date(1970,1,1))).total_microseconds(); |
| 52 | assert(now > 0); |
| 53 | return now; |
| 54 | } |
| 55 | |
| 56 | int64_t GetSystemTimeInSeconds() |
| 57 | { |
no outgoing calls
no test coverage detected