GEOSX
Public Member Functions | List of all members
geosx::Stopwatch Class Reference

Class defining a simple stopwatch for interval timing. More...

#include <Stopwatch.hpp>

Public Member Functions

 Stopwatch ()
 Constructor.
 
void zero ()
 Zero out the timer.
 
real64 elapsedTime ()
 Return elapsed time in seconds since zero() was last called. More...
 

Detailed Description

Class defining a simple stopwatch for interval timing.

Note
Current implementation relies on std::chrono::steady_clock

Definition at line 31 of file Stopwatch.hpp.

Member Function Documentation

◆ elapsedTime()

real64 geosx::Stopwatch::elapsedTime ( )
inline

Return elapsed time in seconds since zero() was last called.

Returns
elapsed time

Definition at line 55 of file Stopwatch.hpp.


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