Searched refs:g_clock (Results 1 – 4 of 4) sorted by relevance
28 static timeval g_clock = { 1234, 1234 }; variable44 return &g_clock; in GetClock()49 g_clock.tv_sec += seconds; in AdvanceClock()141 !CBB_add_asn1_uint64(&out, g_clock.tv_sec) || in Serialize()142 !CBB_add_asn1_uint64(&out, g_clock.tv_usec) || in Serialize()177 g_clock.tv_sec = sec; in Deserialize()178 g_clock.tv_usec = usec; in Deserialize()
36 ClockInterface* g_clock = nullptr; variable39 ClockInterface* prev = g_clock; in SetClockForTesting()40 g_clock = clock; in SetClockForTesting()45 return g_clock; in GetClockForTesting()204 if (g_clock) { in TimeNanos()205 return g_clock->TimeNanos(); in TimeNanos()304 if (g_clock) { in TimeUTCMicros()305 return g_clock->TimeNanos() / kNumNanosecsPerMicrosec; in TimeUTCMicros()
39 int g_clock = 0; variable43 ts.tv_sec = g_clock; in fake_gpr_now()49 void inc_time(void) { g_clock += 30; } in inc_time()