Searched refs:NtpSeconds (Results 1 – 3 of 3) sorted by relevance
/external/openscreen/cast/streaming/ |
D | ntp_time_unittest.cc | 18 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()
|
D | ntp_time.h | 26 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_;
|
D | ntp_time.cc | 15 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()
|