STIR  6.2.0
Public Member Functions | List of all members
stir::TimedObject Class Reference

base class for all objects which need timers. At the moment, there's only a CPU timer. More...

#include "stir/TimedObject.h"

Inheritance diagram for stir::TimedObject:
Inheritance graph
[legend]

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)
 

Detailed Description

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.

Member Function Documentation

◆ stop_timers()

void stir::TimedObject::stop_timers ( ) const
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().

◆ start_timers()

void stir::TimedObject::start_timers ( bool  do_reset = false) const
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().


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