MFEM  v4.3.0
Finite element discretization library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | List of all members
mfem::StopWatch Class Reference

Timing object. More...

#include <tic_toc.hpp>

Public Member Functions

 StopWatch ()
 
void Clear ()
 Clear the elapsed time on the stopwatch and restart it if it's running. More...
 
void Start ()
 Clear the elapsed time and start the stopwatch. More...
 
void Stop ()
 Stop the stopwatch. More...
 
double Resolution ()
 Return the time resolution available to the stopwatch. More...
 
double RealTime ()
 
double UserTime ()
 
double SystTime ()
 
 ~StopWatch ()
 

Detailed Description

Timing object.

Definition at line 34 of file tic_toc.hpp.

Constructor & Destructor Documentation

mfem::StopWatch::StopWatch ( )

Definition at line 401 of file tic_toc.cpp.

mfem::StopWatch::~StopWatch ( )

Definition at line 441 of file tic_toc.cpp.

Member Function Documentation

void mfem::StopWatch::Clear ( )

Clear the elapsed time on the stopwatch and restart it if it's running.

Definition at line 406 of file tic_toc.cpp.

double mfem::StopWatch::RealTime ( )

Return the number of real seconds elapsed since the stopwatch was started.

Definition at line 426 of file tic_toc.cpp.

double mfem::StopWatch::Resolution ( )

Return the time resolution available to the stopwatch.

Definition at line 421 of file tic_toc.cpp.

void mfem::StopWatch::Start ( )

Clear the elapsed time and start the stopwatch.

Definition at line 411 of file tic_toc.cpp.

void mfem::StopWatch::Stop ( )

Stop the stopwatch.

Definition at line 416 of file tic_toc.cpp.

double mfem::StopWatch::SystTime ( )

Return the number of system seconds elapsed since the stopwatch was started.

Definition at line 436 of file tic_toc.cpp.

double mfem::StopWatch::UserTime ( )

Return the number of user seconds elapsed since the stopwatch was started.

Definition at line 431 of file tic_toc.cpp.


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