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

Function GetCurrentTimeMicros

be/src/gutil/walltime.h:86–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86inline 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
92inline int64_t GetMonoTimeNanos() {
93 // See Apple Technical Q&A QA1398 for further detail on mono time in OS X.

Callers 13

AddExactlyOnceMethod · 0.85
GetRandomSeed32Function · 0.85
TEST_FFunction · 0.85
NewEntryMethod · 0.85
SeedRandomFunction · 0.85
TimedAcquireMethod · 0.85
WriteLockMethod · 0.85
DatabaseTestMethod · 0.85
TESTFunction · 0.85
UnixMillisFunction · 0.85

Calls 2

GetCurrentTimeFunction · 0.85
GetClockTimeMicrosFunction · 0.85

Tested by 5

AddExactlyOnceMethod · 0.68
TEST_FFunction · 0.68
SeedRandomFunction · 0.68
DatabaseTestMethod · 0.68
TESTFunction · 0.68