Searched refs:GPR_NS_PER_MS (Results 1 – 18 of 18) sorted by relevance
121 *timeout = x / GPR_NS_PER_MS + (x % GPR_NS_PER_MS != 0); in grpc_http2_decode_timeout()
128 *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()
221 if (t.tv_sec == 2147483 && t.tv_nsec < 648 * GPR_NS_PER_MS) { in gpr_time_to_millis()222 return 2147483 * GPR_MS_PER_SEC + t.tv_nsec / GPR_NS_PER_MS; in gpr_time_to_millis()231 t.tv_nsec / GPR_NS_PER_MS); in gpr_time_to_millis()
91 int64_t measurement_ns = GPR_NS_PER_MS; in gpr_precise_clock_init()
59 static_cast<double>(ts.tv_nsec) / GPR_NS_PER_MS; in timespan_to_millis_round_down()73 static_cast<double>(ts.tv_nsec) / GPR_NS_PER_MS + in timespan_to_millis_round_up()
54 *duration = seconds * GPR_MS_PER_SEC + nanos / GPR_NS_PER_MS; in ParseDurationFromJson()
42 #define GPR_NS_PER_MS 1000000 macro
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()
80 *duration = seconds * GPR_MS_PER_SEC + nanos / GPR_NS_PER_MS; in ParseDuration()
153 (google_protobuf_Duration_nanos(duration_pb) / GPR_NS_PER_MS)); in grpc_grpclb_duration_to_millis()
301 (duration_pb->has_nanos ? duration_pb->nanos : 0) / GPR_NS_PER_MS); in grpc_grpclb_duration_to_millis()