Go to the documentation of this file.
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 time_point now() noexcept
Returns the current time using the currently selected Clock source.
static int64_t resetMonotonicToRealTimeEpoch() noexcept
Monotonic clock might drift over time with respect to Realtime.
TEST(clock, delay_Realtime)
static void setActiveClock(const Source s)
Changes the selected clock to get time from when calling now().
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)
Page generated by Doxygen 1.8.18 for MRPT 2.0.4 at Thu Sep 24 07:14:18 UTC 2020 | |