mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
fix zero timing of initialization and eclapsed time
This commit is contained in:
parent
8ae7c783b5
commit
c05bb28b7a
2 changed files with 8 additions and 6 deletions
|
|
@ -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]
|
||||
};
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue