/third_party/grpc/src/core/lib/iomgr/ |
D | iomgr.cc | 91 gpr_now(GPR_CLOCK_REALTIME), gpr_time_from_seconds(10, GPR_TIMESPAN)); in grpc_iomgr_shutdown() 92 gpr_timespec last_warning_time = gpr_now(GPR_CLOCK_REALTIME); in grpc_iomgr_shutdown() 103 gpr_time_sub(gpr_now(GPR_CLOCK_REALTIME), last_warning_time), in grpc_iomgr_shutdown() 110 last_warning_time = gpr_now(GPR_CLOCK_REALTIME); in grpc_iomgr_shutdown() 131 gpr_time_add(gpr_now(GPR_CLOCK_MONOTONIC), in grpc_iomgr_shutdown() 134 if (gpr_time_cmp(gpr_now(GPR_CLOCK_REALTIME), shutdown_deadline) > in grpc_iomgr_shutdown()
|
/third_party/grpc/src/core/lib/gpr/ |
D | time_precise.cc | 63 gpr_timespec start = gpr_now(GPR_CLOCK_MONOTONIC); in is_fake_clock() 66 gpr_timespec now = gpr_now(GPR_CLOCK_MONOTONIC); in is_fake_clock() 97 gpr_timespec start = gpr_now(GPR_CLOCK_MONOTONIC); in gpr_precise_clock_init() 100 gpr_timespec now = gpr_now(GPR_CLOCK_MONOTONIC); in gpr_precise_clock_init() 145 gpr_timespec ts = gpr_now(GPR_CLOCK_REALTIME); in gpr_get_cycle_counter() 159 *clk = gpr_now(GPR_CLOCK_REALTIME); in gpr_precise_clock_now()
|
D | time_windows.cc | 73 gpr_timespec gpr_now(gpr_clock_type clock_type) { in gpr_now() function 85 now = gpr_now(until.clock_type); in gpr_sleep_until()
|
D | time.cc | 250 return gpr_time_sub(t, gpr_now(t.clock_type)); in gpr_convert_clock_type() 254 return gpr_time_add(gpr_now(clock_type), t); in gpr_convert_clock_type() 261 return gpr_time_add(gpr_now(clock_type), in gpr_convert_clock_type() 262 gpr_time_sub(t, gpr_now(t.clock_type))); in gpr_convert_clock_type()
|
D | time_posix.cc | 149 gpr_timespec gpr_now(gpr_clock_type clock_type) { in gpr_now() function 172 now = gpr_now(until.clock_type); in gpr_sleep_until()
|
/third_party/grpc/src/core/lib/iomgr/executor/ |
D | mpmcqueue.cc | 37 gpr_time_sub(gpr_now(GPR_CLOCK_MONOTONIC), queue_head_->insert_time); in PopFront() 46 gpr_time_sub(gpr_now(GPR_CLOCK_MONOTONIC), busy_time)); in PopFront() 130 auto current_time = gpr_now(GPR_CLOCK_MONOTONIC); in Put() 150 start_time = gpr_now(GPR_CLOCK_MONOTONIC); in Get() 161 *wait_time = gpr_time_sub(gpr_now(GPR_CLOCK_MONOTONIC), start_time); in Get()
|
/third_party/grpc/test/cpp/end2end/ |
D | server_crash_test.cc | 62 gpr_sleep_until(gpr_time_add(gpr_now(GPR_CLOCK_REALTIME), in BidiStream() 78 gpr_sleep_until(gpr_time_add(gpr_now(GPR_CLOCK_REALTIME), in ResponseStream() 126 gpr_sleep_until(gpr_time_add(gpr_now(GPR_CLOCK_REALTIME), in TEST_F() 136 gpr_sleep_until(gpr_time_add(gpr_now(GPR_CLOCK_REALTIME), in TEST_F()
|
D | time_change_test.cc | 99 EXPECT_DEATH(gpr_now(invalid_clock_type), ".*"); in TEST() 104 gpr_timespec now = gpr_now(GPR_CLOCK_MONOTONIC); in TEST() 113 gpr_timespec now = gpr_now(GPR_CLOCK_MONOTONIC); in TEST()
|
/third_party/grpc/test/core/gprpp/ |
D | fork_test.cc | 55 gpr_sleep_until(gpr_time_add(gpr_now(GPR_CLOCK_REALTIME), in sleeping_thd() 70 gpr_time_add(gpr_now(GPR_CLOCK_REALTIME), in test_thd_count() 82 gpr_timespec end_time = gpr_now(GPR_CLOCK_REALTIME); in test_thd_count() 124 gpr_sleep_until(gpr_time_add(gpr_now(GPR_CLOCK_REALTIME), in test_exec_count()
|
/third_party/grpc/test/cpp/util/ |
D | metrics_server.cc | 32 : start_time_(gpr_now(GPR_CLOCK_REALTIME)), num_queries_(0) {} in QpsGauge() 37 start_time_ = gpr_now(GPR_CLOCK_REALTIME); in Reset() 48 gpr_time_sub(gpr_now(GPR_CLOCK_REALTIME), start_time_); in Get()
|
/third_party/grpc/test/cpp/interop/ |
D | stress_interop_client.cc | 93 gpr_time_add(gpr_now(GPR_CLOCK_REALTIME), in MainLoop() 99 while (gpr_time_cmp(gpr_now(GPR_CLOCK_REALTIME), test_end_time) < 0) { in MainLoop() 110 gpr_time_add(gpr_now(GPR_CLOCK_REALTIME), in MainLoop()
|
D | interop_server.cc | 151 gpr_timespec ts = gpr_now(GPR_CLOCK_PRECISE); in CacheableUnaryCall() 221 gpr_time_add(gpr_now(GPR_CLOCK_REALTIME), in StreamingOutputCall() 275 gpr_time_add(gpr_now(GPR_CLOCK_REALTIME), in FullDuplexCall() 372 gpr_sleep_until(gpr_time_add(gpr_now(GPR_CLOCK_REALTIME), in RunServer()
|
D | interop_client.cc | 626 gpr_now(GPR_CLOCK_REALTIME), in DoResponseStreamingWithSlowConsumer() 892 gpr_timespec ts = gpr_now(GPR_CLOCK_PRECISE); in DoCacheableUnary() 932 ts = gpr_now(GPR_CLOCK_PRECISE); in DoCacheableUnary() 1074 gpr_timespec start = gpr_now(GPR_CLOCK_MONOTONIC); in PerformOneSoakTestIteration() 1089 gpr_timespec now = gpr_now(GPR_CLOCK_MONOTONIC); in PerformOneSoakTestIteration() 1113 gpr_now(GPR_CLOCK_MONOTONIC), in PerformSoakTest() 1118 gpr_time_cmp(gpr_now(GPR_CLOCK_MONOTONIC), overall_deadline) < 0; in PerformSoakTest() 1231 gpr_time_add(gpr_now(GPR_CLOCK_REALTIME), in DoLongLivedChannelTest()
|
/third_party/grpc/test/cpp/naming/ |
D | resolver_component_tests_runner_invoker.cc | 79 gpr_time_add(gpr_now(GPR_CLOCK_MONOTONIC), in RunSigHandlingThread() 82 gpr_timespec now = gpr_now(GPR_CLOCK_MONOTONIC); in RunSigHandlingThread() 90 gpr_now(GPR_CLOCK_MONOTONIC), gpr_time_from_seconds(1, GPR_TIMESPAN)); in RunSigHandlingThread()
|
/third_party/grpc/test/core/gpr/ |
D | spinlock_test.cc | 94 gpr_timespec start = gpr_now(GPR_CLOCK_REALTIME); in test() 101 while (gpr_time_cmp(gpr_now(GPR_CLOCK_REALTIME), deadline) < 0) { in test() 117 time_taken = gpr_time_sub(gpr_now(GPR_CLOCK_REALTIME), start); in test()
|
D | sync_test.cc | 246 gpr_timespec start = gpr_now(GPR_CLOCK_REALTIME); in test() 253 while (gpr_time_cmp(gpr_now(GPR_CLOCK_REALTIME), deadline) < 0) { in test() 278 time_taken = gpr_time_sub(gpr_now(GPR_CLOCK_REALTIME), start); in test() 338 deadline = gpr_time_add(gpr_now(GPR_CLOCK_MONOTONIC), in inc_with_1ms_delay() 355 deadline = gpr_time_add(gpr_now(GPR_CLOCK_REALTIME), in inc_with_1ms_delay_event() 401 gpr_time_add(gpr_now(GPR_CLOCK_MONOTONIC), in consumer()
|
/third_party/grpc/test/cpp/microbenchmarks/ |
D | bm_fullstack_trickle.cc | 133 auto now = gpr_time_sub(gpr_now(GPR_CLOCK_MONOTONIC), start_); in Log() 213 gpr_timespec start_ = gpr_now(GPR_CLOCK_MONOTONIC); 304 gpr_timespec warmup_start = gpr_now(GPR_CLOCK_MONOTONIC); in BM_PumpStreamServerToClient_Trickle() 310 if (gpr_time_cmp(gpr_time_sub(gpr_now(GPR_CLOCK_MONOTONIC), warmup_start), in BM_PumpStreamServerToClient_Trickle() 417 gpr_timespec warmup_start = gpr_now(GPR_CLOCK_MONOTONIC); in BM_PumpUnbalancedUnary_Trickle() 423 if (gpr_time_cmp(gpr_time_sub(gpr_now(GPR_CLOCK_MONOTONIC), warmup_start), in BM_PumpUnbalancedUnary_Trickle()
|
/third_party/grpc/test/core/util/ |
D | test_config.cc | 370 gpr_now(GPR_CLOCK_MONOTONIC), in grpc_timeout_seconds_to_deadline() 378 gpr_now(GPR_CLOCK_MONOTONIC), in grpc_timeout_milliseconds_to_deadline() 409 gpr_sleep_until(gpr_time_add(gpr_now(GPR_CLOCK_REALTIME), in ~TestEnvironment() 411 if (gpr_time_cmp(gpr_now(GPR_CLOCK_MONOTONIC), deadline) > 0) { in ~TestEnvironment()
|
D | test_tcp_server.cc | 103 shutdown_deadline = gpr_time_add(gpr_now(GPR_CLOCK_MONOTONIC), in test_tcp_server_destroy() 107 gpr_time_cmp(gpr_now(GPR_CLOCK_MONOTONIC), shutdown_deadline) < 0) { in test_tcp_server_destroy()
|
D | port_isolated_runtime_environment.cc | 37 srand(gpr_now(GPR_CLOCK_REALTIME).tv_nsec); in get_random_port_offset()
|
/third_party/grpc/test/core/client_channel/resolvers/ |
D | dns_resolver_cooldown_test.cc | 75 grpc_timespec_to_millis_round_up(gpr_now(GPR_CLOCK_MONOTONIC)); in test_resolve_address_impl() 78 grpc_timespec_to_millis_round_up(gpr_now(GPR_CLOCK_MONOTONIC)); in test_resolve_address_impl() 108 grpc_timespec_to_millis_round_up(gpr_now(GPR_CLOCK_MONOTONIC)); in test_dns_lookup_ares_locked() 115 grpc_timespec_to_millis_round_up(gpr_now(GPR_CLOCK_MONOTONIC)); in test_dns_lookup_ares_locked()
|
/third_party/grpc/test/cpp/common/ |
D | time_jump_test.cc | 118 gpr_timespec before = gpr_now(GPR_CLOCK_MONOTONIC); in TEST_P() 121 gpr_timespec after = gpr_now(GPR_CLOCK_MONOTONIC); in TEST_P()
|
/third_party/grpc/test/core/fling/ |
D | client.cc | 129 gpr_timespec tv = gpr_now(GPR_CLOCK_REALTIME); in now() 208 while (gpr_time_cmp(gpr_now(end_warmup.clock_type), end_warmup) < 0) { in main() 214 while (gpr_time_cmp(gpr_now(end_profiling.clock_type), end_profiling) < 0) { in main()
|
/third_party/grpc/test/core/tsi/alts/handshaker/ |
D | alts_concurrent_connectivity_test.cc | 323 if (gpr_time_cmp(gpr_now(GPR_CLOCK_MONOTONIC), test_deadline) > 0) { in TEST() 469 gpr_sleep_until(gpr_time_add(gpr_now(GPR_CLOCK_MONOTONIC), in RunServerLoop() 520 if (gpr_time_cmp(gpr_now(GPR_CLOCK_MONOTONIC), test_deadline) > 0) { in TEST() 551 if (gpr_time_cmp(gpr_now(GPR_CLOCK_MONOTONIC), test_deadline) > 0) { in TEST() 583 if (gpr_time_cmp(gpr_now(GPR_CLOCK_MONOTONIC), test_deadline) > 0) { in TEST()
|
/third_party/grpc/src/core/lib/security/credentials/jwt/ |
D | jwt_credentials.cc | 74 gpr_time_sub(cached_.jwt_expiration, gpr_now(GPR_CLOCK_REALTIME)), in get_request_metadata() 92 gpr_time_add(gpr_now(GPR_CLOCK_REALTIME), jwt_lifetime_); in get_request_metadata()
|