10 #include <gtest/gtest.h> 18 std::this_thread::sleep_for(std::chrono::milliseconds(10));
25 TEST(clock, delay_Realtime)
44 std::this_thread::sleep_for(std::chrono::milliseconds(10));
48 std::this_thread::sleep_for(std::chrono::milliseconds(10));
58 TEST(clock, checkSynchEpoch)
60 for (
int i = 0; i < 20; i++)
62 std::this_thread::sleep_for(std::chrono::milliseconds(5));
static double toDouble(const time_point t) noexcept
Converts a timestamp to a UNIX time_t-like number, with fractional part.
EXPECT_LT(out.final_rmse, 3.0)
EXPECT_GT(out.final_iters, 10UL)
static time_point now() noexcept
Returns the current time using the currently selected Clock source.
static void setActiveClock(const Source s)
Changes the selected clock to get time from when calling now().
static int64_t resetMonotonicToRealTimeEpoch() noexcept
Monotonic clock might drift over time with respect to Realtime.
TEST(clock, delay_Realtime)