Ipopt
3.12.12
|
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 &) |
Overloaded Equals 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 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 89 of file IpTimedTask.hpp.
|
inline |
Method returning total system time spend for task so far.
Definition at line 96 of file IpTimedTask.hpp.
|
inline |
Method returning total wall clock time spend for task so far.
Definition at line 103 of file IpTimedTask.hpp.
|
private |
Overloaded Equals Operator.
|
private |
CPU time at beginning of task.
Definition at line 125 of file IpTimedTask.hpp.
|
private |
Total CPU time for task measured so far.
Definition at line 127 of file IpTimedTask.hpp.
|
private |
System time at beginning of task.
Definition at line 129 of file IpTimedTask.hpp.
|
private |
Total system time for task measured so far.
Definition at line 131 of file IpTimedTask.hpp.
|
private |
Wall clock time at beginning of task.
Definition at line 133 of file IpTimedTask.hpp.
|
private |
Total wall clock time for task measured so far.
Definition at line 135 of file IpTimedTask.hpp.
|
private |
Definition at line 139 of file IpTimedTask.hpp.
|
private |
Definition at line 140 of file IpTimedTask.hpp.