|
STIR
6.3.0
|
base class for all objects which need timers. At the moment, there's only a CPU timer. More...
#include "stir/TimedObject.h"

Public Member Functions | |
| void | reset_timers () |
| reset all timers kept by this object | |
| void | stop_timers () const |
| stop all timers kept by this object More... | |
| void | start_timers (bool do_reset=false) const |
| start all timers kept by this object More... | |
| double | get_CPU_timer_value () const |
| get current value of the CPU timer (since first use or last reset) | |
| double | get_wall_clock_timer_value () const |
| get current value of the wall-clock timer (since first use or last reset) | |
base class for all objects which need timers. At the moment, there's only a CPU timer.
It is the responsibility of the derived class to start and stop the timer.
|
inline |
stop all timers kept by this object
Note: function is const such that it can be called in a function of a derived class that is const.
Referenced by stir::DataProcessor< TargetT >::apply(), stir::ForwardProjectorByBin::forward_project(), stir::DataProcessor< TargetT >::set_up(), and stir::ColsherFilter::set_up().
|
inline |
start all timers kept by this object
Note: function is const such that it can be called in a function of a derived class that is const.
Referenced by stir::DataProcessor< TargetT >::apply(), stir::DataProcessor< TargetT >::set_up(), and stir::ColsherFilter::set_up().
1.8.13