MFEM v2.0
|
Timing object. More...
#include <tic_toc.hpp>
Public Member Functions | |
StopWatch () | |
void | Clear () |
void | Start () |
void | Stop () |
double | RealTime () |
double | UserTime () |
double | SystTime () |
Private Member Functions | |
void | Current (clock_t *, clock_t *, clock_t *) |
Private Attributes | |
clock_t | real_time |
clock_t | user_time |
clock_t | syst_time |
clock_t | start_rtime |
clock_t | start_utime |
clock_t | start_stime |
long | my_CLK_TCK |
short | Running |
Timing object.
Definition at line 18 of file tic_toc.hpp.
StopWatch::StopWatch | ( | ) |
Definition at line 18 of file tic_toc.cpp.
References my_CLK_TCK, real_time, Running, syst_time, and user_time.
void StopWatch::Clear | ( | ) |
Definition at line 34 of file tic_toc.cpp.
References Current(), real_time, Running, start_rtime, start_stime, start_utime, syst_time, and user_time.
Referenced by tic().
void StopWatch::Current | ( | clock_t * | r, |
clock_t * | u, | ||
clock_t * | s | ||
) | [private] |
Definition at line 25 of file tic_toc.cpp.
Referenced by Clear(), RealTime(), Start(), Stop(), SystTime(), and UserTime().
double StopWatch::RealTime | ( | ) |
Definition at line 60 of file tic_toc.cpp.
References Current(), my_CLK_TCK, real_time, Running, and start_rtime.
void StopWatch::Start | ( | ) |
Definition at line 41 of file tic_toc.cpp.
References Current(), Running, start_rtime, start_stime, and start_utime.
Referenced by tic().
void StopWatch::Stop | ( | ) |
Definition at line 48 of file tic_toc.cpp.
References Current(), real_time, Running, start_rtime, start_stime, start_utime, syst_time, and user_time.
double StopWatch::SystTime | ( | ) |
Definition at line 88 of file tic_toc.cpp.
References Current(), my_CLK_TCK, Running, start_stime, and syst_time.
double StopWatch::UserTime | ( | ) |
Definition at line 74 of file tic_toc.cpp.
References Current(), my_CLK_TCK, Running, start_utime, and user_time.
Referenced by toc().
long StopWatch::my_CLK_TCK [private] |
Definition at line 23 of file tic_toc.hpp.
Referenced by RealTime(), StopWatch(), SystTime(), and UserTime().
clock_t StopWatch::real_time [private] |
Definition at line 21 of file tic_toc.hpp.
Referenced by Clear(), RealTime(), Stop(), and StopWatch().
short StopWatch::Running [private] |
Definition at line 24 of file tic_toc.hpp.
Referenced by Clear(), RealTime(), Start(), Stop(), StopWatch(), SystTime(), and UserTime().
clock_t StopWatch::start_rtime [private] |
Definition at line 22 of file tic_toc.hpp.
Referenced by Clear(), RealTime(), Start(), and Stop().
clock_t StopWatch::start_stime [private] |
Definition at line 22 of file tic_toc.hpp.
Referenced by Clear(), Start(), Stop(), and SystTime().
clock_t StopWatch::start_utime [private] |
Definition at line 22 of file tic_toc.hpp.
Referenced by Clear(), Start(), Stop(), and UserTime().
clock_t StopWatch::syst_time [private] |
Definition at line 21 of file tic_toc.hpp.
Referenced by Clear(), Stop(), StopWatch(), and SystTime().
clock_t StopWatch::user_time [private] |
Definition at line 21 of file tic_toc.hpp.
Referenced by Clear(), Stop(), StopWatch(), and UserTime().