MRPT  1.9.9
Functions
Clock_unittest.cpp File Reference
#include <gtest/gtest.h>
#include <mrpt/core/Clock.h>
#include <chrono>
#include <thread>
Include dependency graph for Clock_unittest.cpp:

Go to the source code of this file.

Functions

static void test_delay ()
 
 TEST (clock, delay_Realtime)
 
 TEST (clock, changeSource)
 
 TEST (clock, checkSynchEpoch)
 

Function Documentation

◆ TEST() [1/3]

TEST ( clock  ,
delay_Realtime   
)

Definition at line 25 of file Clock_unittest.cpp.

References mrpt::Clock::setActiveClock(), and test_delay().

Here is the call graph for this function:

◆ TEST() [2/3]

TEST ( clock  ,
changeSource   
)

Definition at line 39 of file Clock_unittest.cpp.

References EXPECT_GT(), EXPECT_LT(), mrpt::Clock::now(), mrpt::Clock::setActiveClock(), and mrpt::Clock::toDouble().

Here is the call graph for this function:

◆ TEST() [3/3]

TEST ( clock  ,
checkSynchEpoch   
)

Definition at line 58 of file Clock_unittest.cpp.

References EXPECT_LT(), and mrpt::Clock::resetMonotonicToRealTimeEpoch().

Here is the call graph for this function:

◆ test_delay()

static void test_delay ( )
static

Definition at line 15 of file Clock_unittest.cpp.

References EXPECT_GT(), EXPECT_LT(), mrpt::Clock::now(), and mrpt::Clock::toDouble().

Referenced by TEST().

Here is the call graph for this function:
Here is the caller graph for this function:



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: c7a3bec24 Sun Mar 29 18:33:13 2020 +0200 at dom mar 29 18:50:38 CEST 2020