7 #ifndef __IPTIMEDTASK_HPP__
8 #define __IPTIMEDTASK_HPP__
42 start_called_ =
false;
64 start_called_ =
false;
65 total_cputime_ +=
CpuTime() - start_cputime_;
66 total_systime_ +=
SysTime() - start_systime_;
79 start_called_ =
false;
80 total_cputime_ +=
CpuTime() - start_cputime_;
81 total_systime_ +=
SysTime() - start_systime_;
91 return total_cputime_;
98 return total_systime_;
105 return total_walltime_;
Number total_walltime_
Total wall clock time for task measured so far.
Number TotalWallclockTime() const
Method returning total wall clock time spend for task so far.
TimedTask()
Default constructor.
IPOPTLIB_EXPORT Number WallclockTime()
method determining wallclock time since first call
Number TotalCpuTime() const
Method returning total CPU time spend for task so far.
This class is used to collect timing information for a particular task.
double Number
Type of all numbers.
Number total_cputime_
Total CPU time for task measured so far.
IPOPTLIB_EXPORT Number CpuTime()
method determining CPU time
Number start_cputime_
CPU time at beginning of task.
Number total_systime_
Total system time for task measured so far.
void Reset()
Method for resetting time to zero.
void End()
Method that is called after execution of the task.
Number start_walltime_
Wall clock time at beginning of task.
~TimedTask()
Default destructor.
Number TotalSysTime() const
Method returning total system time spend for task so far.
IPOPTLIB_EXPORT Number SysTime()
method determining system time
Number start_systime_
System time at beginning of task.
void EndIfStarted()
Method that is called after execution of the task for which timing might have been started...
void Start()
Method that is called before execution of the task.