MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / CoarseNow

Function CoarseNow

tensorflow/lite/experimental/ruy/time.h:67–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65inline TimePoint Now() { return InternalDefaultClock::now(); }
66
67inline 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

Callers 1

ResolveMethod · 0.85

Calls 2

DurationFromNanosecondsFunction · 0.85
NowFunction · 0.85

Tested by

no test coverage detected