Lines Matching refs:nanoseconds
45 std::chrono::nanoseconds makeNanosFromUint64(uint64_t nanoseconds) { in makeNanosFromUint64() argument
46 constexpr auto kMaxCount = std::chrono::nanoseconds::max().count(); in makeNanosFromUint64()
47 using CommonType = std::common_type_t<std::chrono::nanoseconds::rep, uint64_t>; in makeNanosFromUint64()
48 const auto count = std::min<CommonType>(kMaxCount, nanoseconds); in makeNanosFromUint64()
49 return std::chrono::nanoseconds{static_cast<std::chrono::nanoseconds::rep>(count)}; in makeNanosFromUint64()
52 uint64_t makeUint64FromNanos(std::chrono::nanoseconds nanoseconds) { in makeUint64FromNanos() argument
53 if (nanoseconds < std::chrono::nanoseconds::zero()) { in makeUint64FromNanos()
57 using CommonType = std::common_type_t<std::chrono::nanoseconds::rep, uint64_t>; in makeUint64FromNanos()
58 const auto count = std::min<CommonType>(kMaxCount, nanoseconds.count()); in makeUint64FromNanos()
272 constexpr auto kZeroNano = std::chrono::nanoseconds::zero(); in unvalidatedConvert()
295 case Discriminator::nanoseconds: in unvalidatedConvert()
296 return Duration(optionalTimeoutDuration.nanoseconds()); in unvalidatedConvert()
611 constexpr auto kZeroNano = std::chrono::nanoseconds::zero(); in unvalidatedConvert()
630 ret.nanoseconds(count); in unvalidatedConvert()