Home
last modified time | relevance | path

Searched refs:NtpSeconds (Results 1 – 3 of 3) sorted by relevance

/external/openscreen/cast/streaming/
Dntp_time_unittest.cc18 EXPECT_EQ(NtpSeconds::zero(), NtpSecondsPart(timestamp)); in TEST()
23 EXPECT_EQ(NtpSeconds::zero(), NtpSecondsPart(timestamp)); in TEST()
28 EXPECT_EQ(NtpSeconds(INT64_C(2208988800)), NtpSecondsPart(timestamp)); in TEST()
33 EXPECT_EQ(NtpSeconds(INT64_C(3762375950)), NtpSecondsPart(timestamp)); in TEST()
40 AssembleNtpTimestamp(NtpSeconds::zero(), NtpFraction::zero()); in TEST()
49 NtpSeconds::zero(), in TEST()
54 timestamp = AssembleNtpTimestamp(NtpSeconds(INT64_C(2208988799)), in TEST()
60 NtpSeconds(INT64_C(3762375950)), in TEST()
Dntp_time.h26 using NtpSeconds = std::chrono::duration<int64_t, std::chrono::seconds::period>; variable
30 constexpr NtpSeconds NtpSecondsPart(NtpTimestamp timestamp) { in NtpSecondsPart()
31 return NtpSeconds(timestamp >> 32); in NtpSecondsPart()
38 constexpr NtpTimestamp AssembleNtpTimestamp(NtpSeconds seconds, in AssembleNtpTimestamp()
69 const NtpSeconds since_ntp_epoch_;
Dntp_time.cc15 constexpr NtpSeconds kTimeBetweenNtpEpochAndUnixEpoch{INT64_C(2208988800)};
23 std::chrono::duration_cast<NtpSeconds>(since_unix_epoch) + in NtpTimeConverter()
32 std::chrono::duration_cast<NtpSeconds>(time_since_start); in ToNtpTimestamp()
44 constexpr NtpSeconds kNtpSecondsPerEra{INT64_C(1) << 32}; in ToLocalTime()