RunTimeMeasurment.hpp
Go to the documentation of this file.
1 #ifndef JULIAN_RUNTIMEMEASURMENT_HPP
2 #define JULIAN_RUNTIMEMEASURMENT_HPP
3 
4 #include <string>
5 #include <iostream>
6 #include <chrono>
7 
8 namespace julian {
9 
24  public:
26  void getTime(std::string);
28 
29  private:
30  void timeDisplay(double);
31  std::chrono::time_point<std::chrono::system_clock> start_;
32  std::chrono::time_point<std::chrono::system_clock> last_;
33  };
34 }
35 #endif
Definition: cadHoliday.cpp:3
void timeDisplay(double)
Helper class.
Definition: RunTimeMeasurment.cpp:63
std::chrono::time_point< std::chrono::system_clock > last_
Recorded moment of object last time measurement.
Definition: RunTimeMeasurment.hpp:32
std::chrono::time_point< std::chrono::system_clock > start_
Recorded moment of object creation.
Definition: RunTimeMeasurment.hpp:31
RunTimeMeasurment()
Constructor.
Definition: RunTimeMeasurment.cpp:13
~RunTimeMeasurment()
Destructor.
Definition: RunTimeMeasurment.cpp:47
Class used to measure run time of the program.
Definition: RunTimeMeasurment.hpp:23
void getTime(std::string)
Records time.
Definition: RunTimeMeasurment.cpp:23