Searched refs:GPR_NS_PER_MS (Results 1 – 9 of 9) sorted by relevance
121 *timeout = x / GPR_NS_PER_MS + (x % GPR_NS_PER_MS != 0); in grpc_http2_decode_timeout()
59 static_cast<double>(ts.tv_nsec) / GPR_NS_PER_MS; in timespec_to_millis_round_down()68 static_cast<double>(ts.tv_nsec) / GPR_NS_PER_MS + in timespec_to_millis_round_up()
106 return static_cast<grpc_millis>(x / GPR_NS_PER_MS + (x % GPR_NS_PER_MS != 0)); in millis_from_nanos()
213 if (t.tv_sec == 2147483 && t.tv_nsec < 648 * GPR_NS_PER_MS) { in gpr_time_to_millis()214 return 2147483 * GPR_MS_PER_SEC + t.tv_nsec / GPR_NS_PER_MS; in gpr_time_to_millis()223 t.tv_nsec / GPR_NS_PER_MS); in gpr_time_to_millis()
92 delta.tv_sec * GPR_MS_PER_SEC + delta.tv_nsec / GPR_NS_PER_MS; in gpr_sleep_until()
102 x.tv_nsec == (i % GPR_MS_PER_SEC) * GPR_NS_PER_MS); in test_values()125 GPR_ASSERT(x.tv_sec * GPR_MS_PER_SEC + x.tv_nsec / GPR_NS_PER_MS == i); in test_values()
42 #define GPR_NS_PER_MS 1000000 macro
80 *duration = seconds * GPR_MS_PER_SEC + nanos / GPR_NS_PER_MS; in ParseDuration()
301 (duration_pb->has_nanos ? duration_pb->nanos : 0) / GPR_NS_PER_MS); in grpc_grpclb_duration_to_millis()