This class is used to collect timing information for a particular task. More...
#include <IpTimedTask.hpp>
Public Member Functions | |
Constructors/Destructors | |
TimedTask () | |
Default constructor. More... | |
~TimedTask () | |
Default destructor. More... | |
void | Reset () |
Method for resetting time to zero. More... | |
void | Start () |
Method that is called before execution of the task. More... | |
void | End () |
Method that is called after execution of the task. More... | |
void | EndIfStarted () |
Method that is called after execution of the task for which timing might have been started. More... | |
Number | TotalCpuTime () const |
Method returning total CPU time spend for task so far. More... | |
Number | TotalSysTime () const |
Method returning total system time spend for task so far. More... | |
Number | TotalWallclockTime () const |
Method returning total wall clock time spend for task so far. More... | |
Private Attributes | |
fields for debugging | |
bool | start_called_ |
bool | end_called_ |
Default Compiler Generated Methods (Hidden to avoid | |
These methods are not implemented and we do not want the compiler to implement them for us, so we declare them private and do not define them. This ensures that they will not be implicitly created/called. | |
Number | start_cputime_ |
CPU time at beginning of task. More... | |
Number | total_cputime_ |
Total CPU time for task measured so far. More... | |
Number | start_systime_ |
System time at beginning of task. More... | |
Number | total_systime_ |
Total system time for task measured so far. More... | |
Number | start_walltime_ |
Wall clock time at beginning of task. More... | |
Number | total_walltime_ |
Total wall clock time for task measured so far. More... | |
TimedTask (const TimedTask &) | |
Copy Constructor. More... | |
void | operator= (const TimedTask &) |
Default Assignment Operator. More... | |
This class is used to collect timing information for a particular task.
Definition at line 18 of file IpTimedTask.hpp.
|
inline |
Default constructor.
Definition at line 24 of file IpTimedTask.hpp.
|
inline |
Default destructor.
Definition at line 34 of file IpTimedTask.hpp.
|
private |
Copy Constructor.
|
inline |
Method for resetting time to zero.
Definition at line 39 of file IpTimedTask.hpp.
|
inline |
Method that is called before execution of the task.
Definition at line 49 of file IpTimedTask.hpp.
|
inline |
Method that is called after execution of the task.
Definition at line 61 of file IpTimedTask.hpp.
|
inline |
Method that is called after execution of the task for which timing might have been started.
This only updates the timing if the timing has indeed been conducted. This is useful to stop timing after catching exceptions.
Definition at line 76 of file IpTimedTask.hpp.
|
inline |
Method returning total CPU time spend for task so far.
Definition at line 90 of file IpTimedTask.hpp.
|
inline |
Method returning total system time spend for task so far.
Definition at line 97 of file IpTimedTask.hpp.
|
inline |
Method returning total wall clock time spend for task so far.
Definition at line 104 of file IpTimedTask.hpp.
|
private |
Default Assignment Operator.
|
private |
CPU time at beginning of task.
Definition at line 126 of file IpTimedTask.hpp.
|
private |
Total CPU time for task measured so far.
Definition at line 128 of file IpTimedTask.hpp.
|
private |
System time at beginning of task.
Definition at line 130 of file IpTimedTask.hpp.
|
private |
Total system time for task measured so far.
Definition at line 132 of file IpTimedTask.hpp.
|
private |
Wall clock time at beginning of task.
Definition at line 134 of file IpTimedTask.hpp.
|
private |
Total wall clock time for task measured so far.
Definition at line 136 of file IpTimedTask.hpp.
|
private |
Definition at line 140 of file IpTimedTask.hpp.
|
private |
Definition at line 141 of file IpTimedTask.hpp.