Home
last modified time | relevance | path

Searched refs:GPR_US_PER_SEC (Results 1 – 8 of 8) sorted by relevance

/external/rust/crates/grpcio-sys/grpc/src/core/lib/gpr/
Dtime_precise.cc151 ts.tv_sec = static_cast<int64_t>(cycles / GPR_US_PER_SEC); in gpr_cycle_counter_to_time()
152 ts.tv_nsec = static_cast<int64_t>((cycles - ts.tv_sec * GPR_US_PER_SEC) * in gpr_cycle_counter_to_time()
Dtime.cc115 return to_seconds_from_sub_second_time(us, GPR_US_PER_SEC, clock_type); in gpr_time_from_micros()
236 return static_cast<double>(t.tv_sec) * GPR_US_PER_SEC + t.tv_nsec * 1e-3; in gpr_timespec_to_micros()
/external/grpc-grpc/test/core/gpr/
Dtime_test.cc95 GPR_ASSERT(x.tv_sec == i / GPR_US_PER_SEC && in test_values()
96 x.tv_nsec == (i % GPR_US_PER_SEC) * GPR_NS_PER_US); in test_values()
121 GPR_ASSERT(x.tv_sec * GPR_US_PER_SEC + x.tv_nsec / GPR_NS_PER_US == i); in test_values()
/external/grpc-grpc/src/core/lib/gpr/
Dtime.cc115 return to_seconds_from_sub_second_time(us, GPR_US_PER_SEC, type); in gpr_time_from_micros()
228 return static_cast<double>(t.tv_sec) * GPR_US_PER_SEC + t.tv_nsec * 1e-3; in gpr_timespec_to_micros()
/external/grpc-grpc/include/grpc/support/
Dtime.h40 #define GPR_US_PER_SEC 1000000 macro
/external/rust/crates/grpcio-sys/grpc/spm-core-include/grpc/support/
Dtime.h40 #define GPR_US_PER_SEC 1000000 macro
/external/rust/crates/grpcio-sys/grpc/include/grpc/support/
Dtime.h40 #define GPR_US_PER_SEC 1000000 macro
/external/grpc-grpc/test/cpp/microbenchmarks/
Dbm_fullstack_trickle.cc53 t.tv_sec = now / GPR_US_PER_SEC; in fake_now()
54 t.tv_nsec = (now % GPR_US_PER_SEC) * GPR_NS_PER_US; in fake_now()