7#ifndef __IPTIMEDTASK_HPP__
8#define __IPTIMEDTASK_HPP__
58 start_called_ =
false;
90 start_called_ =
false;
91 total_cputime_ +=
CpuTime() - start_cputime_;
92 total_systime_ +=
SysTime() - start_systime_;
109 start_called_ =
false;
110 total_cputime_ +=
CpuTime() - start_cputime_;
111 total_systime_ +=
SysTime() - start_systime_;
121 return total_cputime_;
128 return total_systime_;
135 return total_walltime_;
145 return start_cputime_;
155 return start_systime_;
165 return start_walltime_;
177 return start_called_;
Templated class which stores one entry for the CachedResult class.
This class is used to collect timing information for a particular task.
Number start_walltime_
Wall clock time at beginning of task.
void EndIfStarted()
Method that is called after execution of the task for which timing might have been started.
~TimedTask()
Default destructor.
Number total_systime_
Total system time for task measured so far.
void Enable()
enable the timer
Number TotalCpuTime() const
Method returning total CPU time spend for task so far.
Number total_cputime_
Total CPU time for task measured so far.
Number StartCpuTime() const
Method returning start CPU time for started task.
Number StartSysTime() const
Method returning start system time for started task.
void End()
Method that is called after execution of the task.
Number start_systime_
System time at beginning of task.
TimedTask(const TimedTask &)
Copy Constructor.
void Reset()
Method for resetting time to zero.
Number TotalSysTime() const
Method returning total system time spend for task so far.
TimedTask()
Default constructor.
void operator=(const TimedTask &)
Default Assignment Operator.
Number TotalWallclockTime() const
Method returning total wall clock time spend for task so far.
Number start_cputime_
CPU time at beginning of task.
void Disable()
disable the timer
Number StartWallclockTime() const
Method returning start wall clock time for started task.
Number total_walltime_
Total wall clock time for task measured so far.
void Start()
Method that is called before execution of the task.
This file contains a base class for all exceptions and a set of macros to help with exceptions.
IPOPTLIB_EXPORT Number CpuTime()
method determining CPU time
IPOPTLIB_EXPORT Number SysTime()
method determining system time
ipnumber Number
Type of all numbers.
IPOPTLIB_EXPORT Number WallclockTime()
method determining wallclock time since first call