Searched refs:GPR_US_PER_SEC (Results 1 – 8 of 8) sorted by relevance
151 ts.tv_sec = static_cast<int64_t>(cycles / GPR_US_PER_SEC); in gpr_cycle_counter_to_time()152 ts.tv_nsec = static_cast<int64_t>((cycles - ts.tv_sec * GPR_US_PER_SEC) * in gpr_cycle_counter_to_time()
115 return to_seconds_from_sub_second_time(us, GPR_US_PER_SEC, clock_type); in gpr_time_from_micros()236 return static_cast<double>(t.tv_sec) * GPR_US_PER_SEC + t.tv_nsec * 1e-3; in gpr_timespec_to_micros()
95 GPR_ASSERT(x.tv_sec == i / GPR_US_PER_SEC && in test_values()96 x.tv_nsec == (i % GPR_US_PER_SEC) * GPR_NS_PER_US); in test_values()121 GPR_ASSERT(x.tv_sec * GPR_US_PER_SEC + x.tv_nsec / GPR_NS_PER_US == i); in test_values()
115 return to_seconds_from_sub_second_time(us, GPR_US_PER_SEC, type); in gpr_time_from_micros()228 return static_cast<double>(t.tv_sec) * GPR_US_PER_SEC + t.tv_nsec * 1e-3; in gpr_timespec_to_micros()
40 #define GPR_US_PER_SEC 1000000 macro
53 t.tv_sec = now / GPR_US_PER_SEC; in fake_now()54 t.tv_nsec = (now % GPR_US_PER_SEC) * GPR_NS_PER_US; in fake_now()