Home
last modified time | relevance | path

Searched refs:GPR_NS_PER_SEC (Results 1 – 4 of 4) sorted by relevance

/external/grpc-grpc/test/core/gpr/
Dtime_test.cc55 t.tv_nsec = GPR_NS_PER_SEC - t.tv_nsec; in ts_to_s()
98 GPR_ASSERT(x.tv_sec == i / GPR_NS_PER_SEC && in test_values()
99 x.tv_nsec == (i % GPR_NS_PER_SEC)); in test_values()
108 GPR_ASSERT(x.tv_nsec >= 0 && x.tv_nsec < GPR_NS_PER_SEC); in test_values()
112 GPR_ASSERT(x.tv_nsec >= 0 && x.tv_nsec < GPR_NS_PER_SEC); in test_values()
116 GPR_ASSERT(x.tv_nsec >= 0 && x.tv_nsec < GPR_NS_PER_SEC); in test_values()
123 GPR_ASSERT(x.tv_sec * GPR_NS_PER_SEC + x.tv_nsec == i); in test_values()
/external/grpc-grpc/src/core/lib/gpr/
Dtime.cc88 GPR_NS_PER_SEC / units_per_sec); in to_seconds_from_sub_second_time()
111 return to_seconds_from_sub_second_time(ns, GPR_NS_PER_SEC, type); in gpr_time_from_nanos()
140 if (sum.tv_nsec >= GPR_NS_PER_SEC) { in gpr_time_add()
141 sum.tv_nsec -= GPR_NS_PER_SEC; in gpr_time_add()
174 diff.tv_nsec += GPR_NS_PER_SEC; in gpr_time_sub()
/external/grpc-grpc/src/core/lib/iomgr/
Dexec_ctx.cc69 static_cast<double>(GPR_NS_PER_SEC - 1) / in timespec_to_millis_round_up()
70 static_cast<double>(GPR_NS_PER_SEC); in timespec_to_millis_round_up()
/external/grpc-grpc/include/grpc/support/
Dtime.h41 #define GPR_NS_PER_SEC 1000000000 macro