test/stopwatch.cpp
Go to the documentation of this file.
1 
9 /*****************************************************************************
10 ** Includes
11 *****************************************************************************/
12 
13 #include <gtest/gtest.h>
14 #include "../../include/ecl/time/timestamp.hpp"
15 #include "../../include/ecl/time/stopwatch.hpp"
16 
17 /*****************************************************************************
18 ** Platform Check
19 *****************************************************************************/
20 
21 #ifdef ECL_HAS_TIMESTAMP
22 
23 
24 /*****************************************************************************
25 ** Using
26 *****************************************************************************/
27 
28 using ecl::StopWatch;
29 using ecl::TimeStamp;
30 
31 /*****************************************************************************
32 ** Tests
33 *****************************************************************************/
34 
35 TEST(StopwatchTests,silent) {
36 
37  StopWatch stopwatch;
38  TimeStamp time;
39 
40  time = stopwatch.split();
41  time = stopwatch.split();
42  time = stopwatch.elapsed();
43 
44  SUCCEED();
45 }
46 
47 #endif /* ECL_HAS_TIMESTAMP */
48 
49 /*****************************************************************************
50 ** Main program
51 *****************************************************************************/
52 
53 int main(int argc, char **argv) {
54 
55  testing::InitGoogleTest(&argc,argv);
56  return RUN_ALL_TESTS();
57 }
main
int main(int argc, char **argv)
Definition: test/stopwatch.cpp:53
TEST
TEST(TimeDataTests, container)
Definition: test/time_data.cpp:27


ecl_time
Author(s): Daniel Stonier
autogenerated on Wed Mar 2 2022 00:16:19