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

Function GetCurrentTime

be/src/gutil/walltime.h:79–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77extern void InitializeTimebaseInfo();
78
79inline void GetCurrentTime(mach_timespec_t* ts) {
80 clock_serv_t cclock;
81 host_get_clock_service(mach_host_self(), CALENDAR_CLOCK, &cclock);
82 clock_get_time(cclock, ts);
83 mach_port_deallocate(mach_task_self(), cclock);
84}
85
86inline MicrosecondsInt64 GetCurrentTimeMicros() {
87 mach_timespec_t ts;

Callers 3

GetTimesMethod · 0.85
GetCurrentTimeMicrosFunction · 0.85
WallTime_NowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected