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