13 #include <gtest/gtest.h> 14 #include "../../include/ecl/time/sleep.hpp" 15 #include "../../include/ecl/time/timestamp.hpp" 23 #if defined(ECL_IS_POSIX) 31 using ecl::MilliSleep;
32 using ecl::MicroSleep;
39 TEST(SleepTests,sleepConfigured) {
56 TEST(SleepTests,sleepPreConfigured) {
58 Sleep sleep_1_3s(duration);
60 MilliSleep sleep_1400ms(1400);
62 MicroSleep sleep_1400us(1400);
64 NanoSleep sleep_1400ns(1400);
75 int main(
int argc,
char **argv) {
77 testing::InitGoogleTest(&argc,argv);
78 return RUN_ALL_TESTS();
int main(int argc, char **argv)
TEST(TimeDataTests, container)
TimeStamp Duration
Convenience typedef to associate timestamps with the concept of durations.