|
STIR
6.3.0
|
Helper class for measuring execution time of a block of code.It starts the timer in ctor, stops in dtor. Do not create unnamed instances of this class, as they are quite useless: you cannot predict destruction time. More...
#include "stir/TimedBlock.h"
Public Member Functions | |
| TimedBlock (TimerT &Timer) | |
| Create a timed block. | |
| virtual | ~TimedBlock (void) |
| Destroy a timed block. | |
Helper class for measuring execution time of a block of code.
It starts the timer in ctor, stops in dtor. Do not create unnamed instances of this class, as they are quite useless: you cannot predict destruction time.
TimerT has to have a start() and stop() member function. This is the case for stir::Timer (and derived functions) and stir::HighResWallClockTimer.
1.8.13