This class is used to collect timing information for a particular task. More...
#include <IpTimedTask.hpp>
Public Member Functions | |
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... | |
Constructors/Destructors | |
TimedTask () | |
Default constructor. More... | |
~TimedTask () | |
Default destructor. More... | |
Private Member Functions | |
Default Compiler Generated Methods (Hidden to avoid | |
implicit creation/calling). 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. | |
TimedTask (const TimedTask &) | |
Copy Constructor. More... | |
void | operator= (const TimedTask &) |
Default Assignment Operator. More... | |
Private Attributes | |
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... | |
fields for debugging | |
bool | start_called_ |
bool | end_called_ |
This class is used to collect timing information for a particular task.
Definition at line 16 of file IpTimedTask.hpp.
|
inline |
Default constructor.
Definition at line 22 of file IpTimedTask.hpp.
|
inline |
Default destructor.
Definition at line 32 of file IpTimedTask.hpp.
|
private |
Copy Constructor.
|
inline |
Method for resetting time to zero.
Definition at line 37 of file IpTimedTask.hpp.
|
inline |
Method that is called before execution of the task.
Definition at line 47 of file IpTimedTask.hpp.
|
inline |
Method that is called after execution of the task.
Definition at line 59 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 74 of file IpTimedTask.hpp.
|
inline |
Method returning total CPU time spend for task so far.
Definition at line 88 of file IpTimedTask.hpp.
|
inline |
Method returning total system time spend for task so far.
Definition at line 95 of file IpTimedTask.hpp.
|
inline |
Method returning total wall clock time spend for task so far.
Definition at line 102 of file IpTimedTask.hpp.
|
private |
Default Assignment Operator.
|
private |
CPU time at beginning of task.
Definition at line 124 of file IpTimedTask.hpp.
|
private |
Total CPU time for task measured so far.
Definition at line 126 of file IpTimedTask.hpp.
|
private |
System time at beginning of task.
Definition at line 128 of file IpTimedTask.hpp.
|
private |
Total system time for task measured so far.
Definition at line 130 of file IpTimedTask.hpp.
|
private |
Wall clock time at beginning of task.
Definition at line 132 of file IpTimedTask.hpp.
|
private |
Total wall clock time for task measured so far.
Definition at line 134 of file IpTimedTask.hpp.
|
private |
Definition at line 138 of file IpTimedTask.hpp.
|
private |
Definition at line 139 of file IpTimedTask.hpp.