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

LCS::Clock::Clock ( )
inline

Constructor for initializating the clock.

Member Function Documentation

void LCS::Clock::Begin ( )
inline

Start the clock.

void LCS::Clock::End ( )
inline

Stop the clock.

double LCS::Clock::GetElapsedTime ( ) const
inline

Get the elapsed time of the last run of the clock.

Returns
elapsed time in seconds.
double LCS::Clock::GetTotalElapsedTime ( ) const
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: