Ipopt::TimedTask Class Reference

This class is used to collect timing information for a particular task. More...

#include <IpTimedTask.hpp>

List of all members.

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.

Static Public Member Functions

static Number CpuTime ()
 method determining CPU executed since start of program

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.
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_

Detailed Description

This class is used to collect timing information for a particular task.

Definition at line 41 of file IpTimedTask.hpp.


Constructor & Destructor Documentation

Ipopt::TimedTask::TimedTask (  )  [inline]

Default constructor.

Definition at line 47 of file IpTimedTask.hpp.

Ipopt::TimedTask::~TimedTask (  )  [inline]

Default destructor.

Definition at line 55 of file IpTimedTask.hpp.

Ipopt::TimedTask::TimedTask ( const TimedTask  )  [private]

Copy Constructor.


Member Function Documentation

void Ipopt::TimedTask::Reset (  )  [inline]

Method for resetting time to zero.

Definition at line 60 of file IpTimedTask.hpp.

void Ipopt::TimedTask::Start (  )  [inline]

Method that is called before execution of the task.

Definition at line 68 of file IpTimedTask.hpp.

void Ipopt::TimedTask::End (  )  [inline]

Method that is called after execution of the task.

Definition at line 78 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 91 of file IpTimedTask.hpp.

Number Ipopt::TimedTask::TotalTime (  )  const [inline]

Method returning total time spend for task so far.

Definition at line 102 of file IpTimedTask.hpp.

static Number Ipopt::TimedTask::CpuTime (  )  [inline, static]

method determining CPU executed since start of program

Definition at line 110 of file IpTimedTask.hpp.

void Ipopt::TimedTask::operator= ( const TimedTask  )  [private]

Overloaded Equals Operator.


Member Data Documentation

Time at beginning of task.

Definition at line 147 of file IpTimedTask.hpp.

Total time for task measured so far.

Definition at line 149 of file IpTimedTask.hpp.

Definition at line 153 of file IpTimedTask.hpp.

Definition at line 154 of file IpTimedTask.hpp.


The documentation for this class was generated from the following file:

Generated on 15 Mar 2015 for Coin-All by  doxygen 1.6.1