|
ra4_stats
0341147a0dc35f80f4e12c6003afb76a38e2ed6e
|
#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 GetValues().
| 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 GetValues().
|
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().
1.8.11