LCS::Clock Class Reference
Class for time recording. More...
#include <basic.hpp>
Public Member Functions | |
Clock () | |
void | Begin () |
void | End () |
double | GetElapsedTime () const |
double | GetTotalElapsedTime () const |
Detailed Description
Class for time recording.
This class utilizes std::chrono::system_clock
to record the time. It is used for calculating the code running times.
Constructor & Destructor Documentation
|
inline |
Constructor for initializating the clock.
Member Function Documentation
|
inline |
Start the clock.
|
inline |
Stop the clock.
|
inline |
Get the elapsed time of the last run of the clock.
- Returns
- elapsed time in seconds.
|
inline |
Get the total elapsed time of all runs of the clock.
- Returns
- Total elapsed time in seconds.
The documentation for this class was generated from the following file:
- src/basic.hpp