QMCPACK
Timer Struct Reference
+ Collaboration diagram for Timer:

Public Types

using Clock = std::chrono::system_clock
 

Public Member Functions

 Timer ()
 
void restart ()
 
double elapsed () const
 

Public Attributes

Clock::time_point start_time
 

Detailed Description

Definition at line 24 of file Timer.h.

Member Typedef Documentation

◆ Clock

using Clock = std::chrono::system_clock

Definition at line 26 of file Timer.h.

Constructor & Destructor Documentation

◆ Timer()

Timer ( )
inline

Definition at line 28 of file Timer.h.

References Timer::start_time.

28 { start_time = Clock::now(); }
Clock::time_point start_time
Definition: Timer.h:27

Member Function Documentation

◆ elapsed()

◆ restart()

Member Data Documentation

◆ start_time

Clock::time_point start_time

Definition at line 27 of file Timer.h.

Referenced by Timer::elapsed(), Timer::restart(), and Timer::Timer().


The documentation for this struct was generated from the following file: