|
MRPT
1.9.9
|
#include <gtest/gtest.h>#include <mrpt/core/Clock.h>#include <mrpt/system/datetime.h>#include <thread>Go to the source code of this file.
Functions | |
| TEST (DateTime, dateTimeVsClock) | |
| TEST (DateTime, time_t_forth_back) | |
| TEST (DateTime, fixed_date_check) | |
| TEST (DateTime, double_to_from) | |
| TEST (DateTime, timestampAdd) | |
| TEST | ( | DateTime | , |
| dateTimeVsClock | |||
| ) |
Definition at line 16 of file datetime_unittest.cpp.
References EXPECT_GT(), EXPECT_LT(), mrpt::system::getCurrentTime(), and mrpt::Clock::now().
| TEST | ( | DateTime | , |
| time_t_forth_back | |||
| ) |
Definition at line 30 of file datetime_unittest.cpp.
References EXPECT_NEAR(), mrpt::system::time_tToTimestamp(), and mrpt::system::timestampTotime_t().
| TEST | ( | DateTime | , |
| fixed_date_check | |||
| ) |
Definition at line 46 of file datetime_unittest.cpp.
References mrpt::system::dateTimeToString(), EXPECT_EQ(), EXPECT_NEAR(), and mrpt::system::timestampTotime_t().
| TEST | ( | DateTime | , |
| double_to_from | |||
| ) |
Definition at line 57 of file datetime_unittest.cpp.
References EXPECT_NEAR(), mrpt::Clock::fromDouble(), mrpt::system::now(), and mrpt::system::timestampToDouble().
| TEST | ( | DateTime | , |
| timestampAdd | |||
| ) |
Definition at line 67 of file datetime_unittest.cpp.
References EXPECT_NEAR(), mrpt::system::now(), mrpt::system::timestampAdd(), and mrpt::system::timestampToDouble().
| Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 3a26b90fd Wed Mar 25 20:17:03 2020 +0100 at miƩ mar 25 23:05:41 CET 2020 |