Searched refs:to_duration (Results 1 – 19 of 19) sorted by relevance
27 ASSERT_SAME_TYPE(typename HMS::precision, decltype(std::declval<HMS>().to_duration())); in check_duration()28 ASSERT_NOEXCEPT( std::declval<HMS>().to_duration()); in check_duration()30 return HMS(d).to_duration().count(); in check_duration()
41 Clock::to_duration(steady_clock::now().time_since_epoch())); in now()44 Clock::to_duration(high_resolution_clock::now().time_since_epoch())); in now()
50 Clock::to_duration(whole_seconds) + start_time_; in ToLocalTime()51 const auto remainder = Clock::to_duration(NtpFractionPart(timestamp)); in ToLocalTime()
168 constexpr auto kTrueJitter = Clock::to_duration(seconds(1)); in TEST()196 constexpr auto kMaxDiffAtEnd = Clock::to_duration(milliseconds(2)); in TEST()
273 Clock::to_duration(receiver_report.delay_since_last_report); in OnReceiverReport()284 constexpr auto kNearZeroRoundTripTime = Clock::to_duration(microseconds(75)); in OnReceiverReport()509 Clock::to_duration(target_playout_delay_) * kWaitFraction::num / in ChooseKickstartPacket()
27 Clock::to_duration(std::chrono::seconds(1)).count(); in ToClampedBitsPerSecond()
191 Clock::to_duration(kMaxValidReportedDelay); in SetDelaySinceLastReport()
25 Clock::to_duration(std::chrono::seconds(1));132 Clock::duration time_till_refresh = Clock::to_duration(ttl * fraction); in AdvanceThroughAllTtlFractions()252 clock_.Advance(Clock::to_duration(a_record_.ttl() * 0.83)); in TEST_F()274 Clock::duration advance_time = Clock::to_duration(a_record_.ttl() * 0.6); in TEST_F()
96 alarm_.ScheduleFromNow([this]() { ProbeOnce(); }, Clock::to_duration(delay)); in Postpone()
89 clock_.Advance(Clock::to_duration(std::chrono::seconds(1))); in ~MdnsPublisherTest()362 Clock::to_duration(std::chrono::seconds(1)); in TEST_F()
370 return Clock::to_duration(kMinAnnounceDelay * in GetNextAnnounceDelay()
288 Clock::to_duration(record_.ttl() * ttl_fraction); in GetNextSendTime()
29 static constexpr duration to_duration(D d) { in to_duration() function
38 approximate_cast_frame_duration_(Clock::to_duration(seconds(1)) / in StreamingOpusEncoder()
373 1.0 / Clock::to_duration(seconds(1)).count(); in ComputeFrameEncodeStats()
119 (pending_audio_spec_.samples * Clock::to_duration(kOneSecond)) / in RenderNextFrame()
438 Clock::to_duration(std::chrono::milliseconds(250));
160 `Clock::to_duration`, e.g. `Clock::to_duration(seconds(2))`
639 constexpr precision to_duration() const noexcept;2800 constexpr precision to_duration() const noexcept2806 constexpr explicit operator precision() const noexcept { return to_duration(); }