1 #define BOOST_TEST_MODULE (TimeStamp_t) 2 #include "boost/test/unit_test.hpp" 15 static_assert(temp.value() ==
t);
17 static_assert(Timestamp::invalidTimestamp() < Timestamp::beginOfTime());
18 static_assert(Timestamp::beginOfTime() < Timestamp::endOfTime());
19 static_assert(Timestamp::endOfTime().
value() + 1 == 0);
21 constexpr
Timestamp db(0xdeadbeefbeefdead);
23 static_assert(db.timeLow() == 0xbeefdead);
24 static_assert(db.timeHigh() == 0xdeadbeef);
25 static_assert(db.value() == 0xdeadbeefbeefdead);
33 static_assert(small < med);
34 static_assert(small <= med);
35 static_assert(!(small == med));
36 static_assert(small != med);
37 static_assert(!(small > med));
38 static_assert(!(small >= med));
41 BOOST_AUTO_TEST_SUITE_END()
double TimeStamp_t
us since 1970, based on TimeService
BOOST_AUTO_TEST_CASE(constructTest)
std::uint64_t TimeValue_t