| 84 | } |
| 85 | |
| 86 | inline MicrosecondsInt64 GetCurrentTimeMicros() { |
| 87 | mach_timespec_t ts; |
| 88 | GetCurrentTime(&ts); |
| 89 | return ts.tv_sec * MICROS_PER_SEC + ts.tv_nsec / NANOS_PER_MICRO; |
| 90 | } |
| 91 | |
| 92 | inline int64_t GetMonoTimeNanos() { |
| 93 | // See Apple Technical Q&A QA1398 for further detail on mono time in OS X. |