#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. | |
Static Public Member Functions | |
static Number | CpuTime () |
method determining CPU executed since start of program |
TimedTask | ( | ) | [inline] |
Default constructor.
~TimedTask | ( | ) | [inline] |
Default destructor.
void Reset | ( | ) | [inline] |
void Start | ( | ) | [inline] |
Method that is called before execution of the task.
References TimedTask::CpuTime(), and DBG_ASSERT.
Referenced by OrigIpoptNLP::c(), QualityFunctionMuOracle::CalculateMu(), OrigIpoptNLP::d(), OrigIpoptNLP::f(), OrigIpoptNLP::grad_f(), OrigIpoptNLP::h(), TSymLinearSolver::InitializeImpl(), OrigIpoptNLP::jac_c(), OrigIpoptNLP::jac_d(), TSymLinearSolver::MultiSolve(), IpoptAlgorithm::Optimize(), PDFullSpaceSolver::Solve(), and FilterLSAcceptor::TryCorrector().
void End | ( | ) | [inline] |
Method that is called after execution of the task.
References TimedTask::CpuTime(), and DBG_ASSERT.
Referenced by OrigIpoptNLP::c(), QualityFunctionMuOracle::CalculateMu(), OrigIpoptNLP::d(), OrigIpoptNLP::f(), OrigIpoptNLP::grad_f(), OrigIpoptNLP::h(), TSymLinearSolver::InitializeImpl(), OrigIpoptNLP::jac_c(), OrigIpoptNLP::jac_d(), TSymLinearSolver::MultiSolve(), IpoptAlgorithm::Optimize(), PDFullSpaceSolver::Solve(), and FilterLSAcceptor::TryCorrector().
void 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.
References TimedTask::CpuTime(), and DBG_ASSERT.
Referenced by IpoptAlgorithm::Optimize().
Number TotalTime | ( | ) | const [inline] |
Method returning total time spend for task so far.
References DBG_ASSERT.
Referenced by TimingStatistics::PrintAllTimingStatistics(), OrigIpoptNLP::PrintTimingStatistics(), and OrigIpoptNLP::TotalFunctionEvaluationCPUTime().
static Number CpuTime | ( | ) | [inline, static] |
method determining CPU executed since start of program
Referenced by TimedTask::End(), TimedTask::EndIfStarted(), and TimedTask::Start().