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. | |
void | Start () |
Method that is called before execution of the task. | |
void | End () |
Method that is called after execution of the task. | |
void | EndIfStarted () |
Method that is called after execution of the task for which timing might have been started. | |
Number | TotalTime () const |
Method returning total time spend for task so far. | |
Constructors/Destructors | |
TimedTask () | |
Default constructor. | |
~TimedTask () | |
Default destructor. | |
Private Member Functions | |
Default Compiler Generated Methods (Hidden to avoid | |
TimedTask (const TimedTask &) | |
Copy Constructor. | |
void | operator= (const TimedTask &) |
Overloaded Equals Operator. | |
Private Attributes | |
Number | start_time_ |
Time at beginning of task. | |
Number | total_time_ |
Total time for task measured so far. | |
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.
Ipopt::TimedTask::TimedTask | ( | ) | [inline] |
Default constructor.
Definition at line 24 of file IpTimedTask.hpp.
Ipopt::TimedTask::~TimedTask | ( | ) | [inline] |
Default destructor.
Definition at line 32 of file IpTimedTask.hpp.
Ipopt::TimedTask::TimedTask | ( | const TimedTask & | ) | [private] |
Copy Constructor.
void Ipopt::TimedTask::Reset | ( | ) | [inline] |
Method for resetting time to zero.
Definition at line 37 of file IpTimedTask.hpp.
void Ipopt::TimedTask::Start | ( | ) | [inline] |
Method that is called before execution of the task.
Definition at line 45 of file IpTimedTask.hpp.
void Ipopt::TimedTask::End | ( | ) | [inline] |
Method that is called after execution of the task.
Definition at line 55 of file IpTimedTask.hpp.
void Ipopt::TimedTask::EndIfStarted | ( | ) | [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 68 of file IpTimedTask.hpp.
Number Ipopt::TimedTask::TotalTime | ( | ) | const [inline] |
Method returning total time spend for task so far.
Definition at line 79 of file IpTimedTask.hpp.
void Ipopt::TimedTask::operator= | ( | const TimedTask & | ) | [private] |
Overloaded Equals Operator.
Number Ipopt::TimedTask::start_time_ [private] |
Time at beginning of task.
Definition at line 101 of file IpTimedTask.hpp.
Number Ipopt::TimedTask::total_time_ [private] |
Total time for task measured so far.
Definition at line 103 of file IpTimedTask.hpp.
bool Ipopt::TimedTask::start_called_ [private] |
Definition at line 107 of file IpTimedTask.hpp.
bool Ipopt::TimedTask::end_called_ [private] |
Definition at line 108 of file IpTimedTask.hpp.