MCPcopy Create free account
hub / github.com/apache/impala / GetClockTimeMicros

Function GetClockTimeMicros

be/src/gutil/walltime.h:136–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134#else
135
136inline MicrosecondsInt64 GetClockTimeMicros(clockid_t clock) {
137 timespec ts;
138 clock_gettime(clock, &ts);
139 return ts.tv_sec * MICROS_PER_SEC + ts.tv_nsec / NANOS_PER_MICRO;
140}
141
142#endif // defined(__APPLE__)
143

Callers 3

GetCurrentTimeMicrosFunction · 0.85
GetMonoTimeMicrosFunction · 0.85
GetThreadCpuTimeMicrosFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected