| 65 | inline TimePoint Now() { return InternalDefaultClock::now(); } |
| 66 | |
| 67 | inline TimePoint CoarseNow() { |
| 68 | #ifdef __linux__ |
| 69 | timespec t; |
| 70 | clock_gettime(CLOCK_MONOTONIC_COARSE, &t); |
| 71 | return TimePoint( |
| 72 | DurationFromNanoseconds(1000000000LL * t.tv_sec + t.tv_nsec)); |
| 73 | #else |
| 74 | return Now(); |
| 75 | #endif |
| 76 | } |
| 77 | |
| 78 | } // namespace ruy |
| 79 |
no test coverage detected