|
MRPT
2.0.1
|
#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 2.0.1 Git: 0fef1a6d7 Fri Apr 3 23:00:21 2020 +0200 at vie abr 3 23:20:28 CEST 2020 |