![]() |
Orfeo Toolbox
3.16
|
Class for computing the time passed between two points in the code. More...
#include <itkTimeProbe.h>
Inheritance diagram for itk::TimeProbe:
Collaboration diagram for itk::TimeProbe:Public Types | |
| typedef unsigned long | CountType |
| typedef RealTimeClock::TimeStampType | TimeStampType |
Public Member Functions | |
| TimeProbe () | |
| virtual | ~TimeProbe () |
| virtual RealTimeClock::TimeStampType | GetInstantValue (void) const |
| RealTimeClock::TimeStampType | GetMean (void) const |
| TimeStampType | GetMeanTime (void) const |
| CountType | GetNumberOfStarts (void) const |
| CountType | GetNumberOfStops (void) const |
| RealTimeClock::TimeStampType | GetTotal (void) const |
| std::string | GetType (void) const |
| std::string | GetUnit (void) const |
| void | Start (void) |
| void | Stop (void) |
Private Attributes | |
| RealTimeClock::Pointer | m_RealTimeClock |
Class for computing the time passed between two points in the code.
This class allows the user to trace the time passed between the execution of two pieces of code. It can be started and stopped in order to evaluate the execution over multiple passes. The values of time are taken from the RealTimeClock.
Definition at line 39 of file itkTimeProbe.h.
| typedef unsigned long itk::TimeProbe::CountType |
Type for counting how many times the probe has been started and stopped.
Reimplemented from itk::ResourceProbe< RealTimeClock::TimeStampType, RealTimeClock::TimeStampType >.
Definition at line 46 of file itkTimeProbe.h.
Type for measuring time. See the RealTimeClock class for details on the precision and units of this clock signal
Definition at line 50 of file itkTimeProbe.h.
| itk::TimeProbe::TimeProbe | ( | ) |
|
virtual |
Destructor
Definition at line 31 of file itkTimeProbe.cxx.
|
virtual |
Get the current time. Warning: the returned value is not the elapsed time since the last Start() call.
Implements itk::ResourceProbe< RealTimeClock::TimeStampType, RealTimeClock::TimeStampType >.
Definition at line 45 of file itkTimeProbe.cxx.
|
inherited |
Returns the average value changes between the starts and stops of the probe. Stop() has to be called at least once, returns 0 otherwise.
Get Mean
| TimeProbe::TimeStampType itk::TimeProbe::GetMeanTime | ( | void | ) | const |
Returns the average times passed between the starts and stops of the probe. See the RealTimeClock for details on the precision and units of this time value. Obsolete method kept for backward compatibility, use Probe::GetMean() instead.
Definition at line 38 of file itkTimeProbe.cxx.
Referenced by otb::OGRIOHelper::ConvertOGRLayerToDataTreeNode(), itk::XMLFilterWatcher::EndFilter(), otb::GeometriesToGeometriesFilter::GenerateData(), otb::VectorDataToVectorDataFilter< TInputVectorData, TOutputVectorData >::GenerateData(), itk::IterativeInverseDeformationFieldImageFilter< TInputImage, TOutputImage >::GenerateData(), otb::VectorDataExtractROI< TVectorData >::GenerateData(), otb::VectorDataProjectionFilter< TInputVectorData, TOutputVectorData >::GenerateData(), otb::ImageLayerRenderingModel< TOutputImage, TLayer >::RasterizeVisibleLayers(), otb::VectorDataGlComponent< TVectorData >::Render(), otb::ImageLayer< TImage, TOutputImage >::RenderImages(), otb::OGRVectorDataIO::Write(), and otb::KMLVectorDataIO::Write().
|
inherited |
Returns the number of times that the probe has been started
Get Number of Starts
|
inherited |
Returns the number of times that the probe has been stopped
Get Number of Stops
|
inherited |
Returns the accumulated value changes between the starts and stops of the probe
Get Total
|
inherited |
Returns the type probed value
|
inherited |
Returns the unit probed value
|
inherited |
Start counting the change of value
Start counting
|
inherited |
Stop counting the change of value
Stop the probe
|
private |
Definition at line 74 of file itkTimeProbe.h.