ra4_macros
bede988c286599a3a84b77a4d788ac0a971e89f9
|
#include <timer.hpp>
Public Member Functions | |
Timer (unsigned long num_its=0, double auto_print=0.) | |
void | SetAutoPrint (double auto_print) |
void | SetNumIterations (unsigned long num_its) |
void | Start () |
void | Iterate () |
double | GetRemainingTime () const |
void | PrintRemainingTime () const |
Private Attributes | |
time_t | start_time_ |
time_t | last_print_ |
unsigned long | num_its_ |
unsigned long | cur_its_ |
double | auto_print_ |
|
explicit |
double Timer::GetRemainingTime | ( | ) | const |
Definition at line 39 of file timer.cpp.
References cur_its_, num_its_, and start_time_.
Referenced by PrintRemainingTime().
void Timer::Iterate | ( | ) |
Definition at line 28 of file timer.cpp.
References auto_print_, cur_its_, last_print_, and PrintRemainingTime().
Referenced by GetCounts(), and Process().
void Timer::PrintRemainingTime | ( | ) | const |
Definition at line 49 of file timer.cpp.
References cur_its_, GetRemainingTime(), last_print_, and num_its_.
Referenced by Iterate().
void Timer::SetAutoPrint | ( | double | auto_print | ) |
Definition at line 14 of file timer.cpp.
References auto_print_.
void Timer::SetNumIterations | ( | unsigned long | num_its | ) |
void Timer::Start | ( | ) |
Definition at line 22 of file timer.cpp.
References cur_its_, last_print_, and start_time_.
Referenced by GetCounts(), and Process().
|
private |
Definition at line 23 of file timer.hpp.
Referenced by Iterate(), and SetAutoPrint().
|
private |
Definition at line 22 of file timer.hpp.
Referenced by GetRemainingTime(), Iterate(), PrintRemainingTime(), and Start().
|
mutableprivate |
Definition at line 21 of file timer.hpp.
Referenced by Iterate(), PrintRemainingTime(), and Start().
|
private |
Definition at line 22 of file timer.hpp.
Referenced by GetRemainingTime(), PrintRemainingTime(), and SetNumIterations().
|
private |
Definition at line 20 of file timer.hpp.
Referenced by GetRemainingTime(), and Start().