Home
last modified time | relevance | path

Searched refs:GPR_MS_PER_SEC (Results 1 – 25 of 41) sorted by relevance

12

/external/grpc-grpc/src/core/lib/transport/
Dtimeout_encoding.cc65 if (x < GPR_MS_PER_SEC) { in enc_millis()
68 if (x % GPR_MS_PER_SEC == 0) { in enc_millis()
69 enc_seconds(buffer, x / GPR_MS_PER_SEC); in enc_millis()
79 } else if (timeout < 1000 * GPR_MS_PER_SEC) { in grpc_http2_encode_timeout()
83 timeout / GPR_MS_PER_SEC + (timeout % GPR_MS_PER_SEC != 0)); in grpc_http2_encode_timeout()
130 *timeout = x * GPR_MS_PER_SEC; in grpc_http2_decode_timeout()
133 *timeout = x * 60 * GPR_MS_PER_SEC; in grpc_http2_decode_timeout()
136 *timeout = x * 60 * 60 * GPR_MS_PER_SEC; in grpc_http2_decode_timeout()
/external/rust/crates/grpcio-sys/grpc/src/core/lib/transport/
Dtimeout_encoding.cc69 if (x < GPR_MS_PER_SEC) { in enc_millis()
72 if (x % GPR_MS_PER_SEC == 0) { in enc_millis()
73 enc_seconds(buffer, x / GPR_MS_PER_SEC); in enc_millis()
84 } else if (timeout < 1000 * GPR_MS_PER_SEC) { in grpc_http2_encode_timeout()
90 timeout / GPR_MS_PER_SEC + (timeout % GPR_MS_PER_SEC != 0)); in grpc_http2_encode_timeout()
137 *timeout = x * GPR_MS_PER_SEC; in grpc_http2_decode_timeout()
140 *timeout = x * 60 * GPR_MS_PER_SEC; in grpc_http2_decode_timeout()
143 *timeout = x * 60 * 60 * GPR_MS_PER_SEC; in grpc_http2_decode_timeout()
/external/grpc-grpc/test/core/transport/
Dtimeout_encoding_test.cc62 assert_encodes_as(20 * 60 * GPR_MS_PER_SEC, "20M"); in test_encoding()
63 assert_encodes_as(60 * 60 * GPR_MS_PER_SEC, "1H"); in test_encoding()
64 assert_encodes_as(10 * 60 * 60 * GPR_MS_PER_SEC, "10H"); in test_encoding()
115 return static_cast<grpc_millis>(x * GPR_MS_PER_SEC); in millis_from_seconds()
118 return static_cast<grpc_millis>(x * 60 * GPR_MS_PER_SEC); in millis_from_minutes()
121 return static_cast<grpc_millis>(x * 3600 * GPR_MS_PER_SEC); in millis_from_hours()
/external/grpc-grpc/test/core/util/
Dport_server_client.cc90 grpc_core::ExecCtx::Get()->Now() + 30 * GPR_MS_PER_SEC, in grpc_free_port_using_server()
103 grpc_core::ExecCtx::Get()->Now() + GPR_MS_PER_SEC))) { in grpc_free_port_using_server()
174 grpc_core::ExecCtx::Get()->Now() + 30 * GPR_MS_PER_SEC, in got_port_from_server()
224 grpc_core::ExecCtx::Get()->Now() + 30 * GPR_MS_PER_SEC, in grpc_pick_port_using_server()
237 grpc_core::ExecCtx::Get()->Now() + GPR_MS_PER_SEC))) { in grpc_pick_port_using_server()
/external/grpc-grpc/src/core/lib/iomgr/
Dexec_ctx.cc58 double x = GPR_MS_PER_SEC * static_cast<double>(ts.tv_sec) + in timespec_to_millis_round_down()
67 double x = GPR_MS_PER_SEC * static_cast<double>(ts.tv_sec) + in timespec_to_millis_round_up()
/external/grpc-grpc/src/core/lib/gpr/
Dtime.cc119 return to_seconds_from_sub_second_time(ms, GPR_MS_PER_SEC, type); in gpr_time_from_millis()
214 return 2147483 * GPR_MS_PER_SEC + t.tv_nsec / GPR_NS_PER_MS; in gpr_time_to_millis()
222 return static_cast<int32_t>(t.tv_sec * GPR_MS_PER_SEC + in gpr_time_to_millis()
Dtime_windows.cc92 delta.tv_sec * GPR_MS_PER_SEC + delta.tv_nsec / GPR_NS_PER_MS; in gpr_sleep_until()
/external/rust/crates/grpcio-sys/grpc/src/core/lib/gpr/
Dtime.cc119 return to_seconds_from_sub_second_time(ms, GPR_MS_PER_SEC, clock_type); in gpr_time_from_millis()
222 return 2147483 * GPR_MS_PER_SEC + t.tv_nsec / GPR_NS_PER_MS; in gpr_time_to_millis()
230 return static_cast<int32_t>(t.tv_sec * GPR_MS_PER_SEC + in gpr_time_to_millis()
Dtime_windows.cc92 delta.tv_sec * GPR_MS_PER_SEC + delta.tv_nsec / GPR_NS_PER_MS; in gpr_sleep_until()
/external/grpc-grpc/test/core/gpr/
Dtime_test.cc101 GPR_ASSERT(x.tv_sec == i / GPR_MS_PER_SEC && in test_values()
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()
/external/rust/crates/grpcio-sys/grpc/src/core/lib/iomgr/
Dexec_ctx.cc58 double x = GPR_MS_PER_SEC * static_cast<double>(ts.tv_sec) + in timespan_to_millis_round_down()
72 double x = GPR_MS_PER_SEC * static_cast<double>(ts.tv_sec) + in timespan_to_millis_round_up()
/external/rust/crates/grpcio-sys/grpc/src/core/lib/json/
Djson_util.cc54 *duration = seconds * GPR_MS_PER_SEC + nanos / GPR_NS_PER_MS; in ParseDurationFromJson()
/external/grpc-grpc/include/grpc/support/
Dtime.h39 #define GPR_MS_PER_SEC 1000 macro
/external/rust/crates/grpcio-sys/grpc/spm-core-include/grpc/support/
Dtime.h39 #define GPR_MS_PER_SEC 1000 macro
/external/rust/crates/grpcio-sys/grpc/include/grpc/support/
Dtime.h39 #define GPR_MS_PER_SEC 1000 macro
/external/rust/crates/grpcio-sys/grpc/src/core/ext/xds/
Dfile_watcher_certificate_provider_factory.cc134 file_watcher_config->refresh_interval_ms() / GPR_MS_PER_SEC); in CreateCertificateProvider()
/external/grpc-grpc/test/core/security/
Dssl_server_fuzzer.cc89 grpc_millis deadline = GPR_MS_PER_SEC + grpc_core::ExecCtx::Get()->Now(); in LLVMFuzzerTestOneInput()
/external/rust/crates/grpcio-sys/grpc/test/core/security/
Dssl_server_fuzzer.cc96 grpc_millis deadline = GPR_MS_PER_SEC + grpc_core::ExecCtx::Get()->Now(); in LLVMFuzzerTestOneInput()
/external/rust/crates/grpcio-sys/grpc/src/core/ext/transport/chttp2/transport/
Dframe_ping.cc104 t->ping_recv_state.last_ping_recv_time + 7200 * GPR_MS_PER_SEC; in grpc_chttp2_ping_parser_parse()
Dwriting.cc87 ? 7200 * GPR_MS_PER_SEC in maybe_initiate_ping()
88 : (GPR_MS_PER_SEC); /* A second is added to deal with network delays in maybe_initiate_ping()
/external/grpc-grpc/src/core/ext/transport/chttp2/transport/
Dframe_ping.cc105 t->ping_recv_state.last_ping_recv_time + 7200 * GPR_MS_PER_SEC; in grpc_chttp2_ping_parser_parse()
/external/grpc-grpc/src/core/ext/filters/client_channel/
Dmethod_params.cc80 *duration = seconds * GPR_MS_PER_SEC + nanos / GPR_NS_PER_MS; in ParseDuration()
/external/rust/crates/grpcio-sys/grpc/src/core/ext/filters/client_channel/lb_policy/grpclb/
Dload_balancer_api.cc152 (google_protobuf_Duration_seconds(duration_pb) * GPR_MS_PER_SEC) + in grpc_grpclb_duration_to_millis()
/external/grpc-grpc/src/core/lib/security/credentials/oauth2/
Doauth2_credentials.cc187 *token_lifetime = strtol(expires_in->value, nullptr, 10) * GPR_MS_PER_SEC; in grpc_oauth2_token_fetcher_credentials_parse_server_response()
260 GRPC_SECURE_TOKEN_REFRESH_THRESHOLD_SECS * GPR_MS_PER_SEC; in oauth2_token_fetcher_get_request_metadata()
/external/grpc-grpc/test/core/end2end/fixtures/
Dhttp_proxy_fixture.cc459 grpc_core::ExecCtx::Get()->Now() + 10 * GPR_MS_PER_SEC; in on_read_request_done()
523 grpc_core::ExecCtx::Get()->Now() + GPR_MS_PER_SEC)); in thread_main()

12