15 #include "../config/config.hpp" 18 #ifndef MFEM_TIMER_TYPE 20 #define MFEM_TIMER_TYPE 0 22 #define MFEM_TIMER_TYPE 3 38 std::unique_ptr<internal::StopWatch> M;
~StopWatch()
Default destructor.
double RealTime()
Return the number of real seconds elapsed since the stopwatch was started.
void Restart()
Clears and restarts the stopwatch. Equivalent to Clear() followed by Start().
void Stop()
Stop the stopwatch.
double UserTime()
Return the number of user seconds elapsed since the stopwatch was started.
double Resolution()
Return the time resolution available to the stopwatch.
void Start()
Start the stopwatch. The elapsed time is not cleared.
StopWatch()
Creates a new (stopped) StopWatch object.
void tic()
Start the tic_toc timer.
double toc()
End timing and return the time from tic() to toc() in seconds.
void Clear()
Clear the elapsed time on the stopwatch and restart it if it's running.
double SystTime()
Return the number of system seconds elapsed since the stopwatch was started.