fix zero timing of initialization and eclapsed time

This commit is contained in:
liangjg 2018-12-19 12:04:51 -05:00
parent 8ae7c783b5
commit c05bb28b7a
2 changed files with 8 additions and 6 deletions

View file

@ -37,7 +37,7 @@ public:
Timer() {};
//! Start running the timer
void start ();
void start();
//! Get total elapsed time in seconds
//! \return Elapsed time in [s]
@ -52,7 +52,7 @@ public:
private:
bool running_ {false}; //!< is timer running?
std::chrono::time_point<clock> start_; //!< starting point for clock
double elapsed_ {0.0}; //!< elasped time in [s]
double elapsed_ {0.0}; //!< elapsed time in [s]
};
//==============================================================================