![]() |
OTB
9.1.1
Orfeo Toolbox
|
#include <otbStopwatch.h>
Public Types | |
| typedef uint64_t | DurationType |
| typedef Stopwatch | Self |
Public Member Functions | |
| std::string | GetElapsedHumanReadableTime () const |
| void | GetElapsedHumanReadableTime (std::ostream &oss) const |
| DurationType | GetElapsedMilliseconds () const |
| bool | IsRunning () const |
| void | Reset () |
| void | Restart () |
| void | Start () |
| void | Stop () |
| Stopwatch () | |
Static Public Member Functions | |
| static Stopwatch | StartNew () |
Private Types | |
| typedef uint64_t | TimepointType |
Private Member Functions | |
| DurationType | GetRunningElapsedTime () const |
| TimepointType | GetTimestamp () const |
Private Attributes | |
| DurationType | m_ElapsedMilliseconds |
| bool | m_IsRunning |
| TimepointType | m_StartTime |
Stopwatch timer.
A simple class for measuring elapsed time.
Definition at line 41 of file otbStopwatch.h.
| typedef uint64_t otb::Stopwatch::DurationType |
Represents a duration measured in milliseconds
Definition at line 48 of file otbStopwatch.h.
| typedef Stopwatch otb::Stopwatch::Self |
Standard class typedefs.
Definition at line 45 of file otbStopwatch.h.
|
private |
Definition at line 82 of file otbStopwatch.h.
| otb::Stopwatch::Stopwatch | ( | ) |
Constructs a timer instance
| std::string otb::Stopwatch::GetElapsedHumanReadableTime | ( | ) | const |
Get the total duration in human readable format
| void otb::Stopwatch::GetElapsedHumanReadableTime | ( | std::ostream & | oss | ) | const |
Get the total duration in human readable format (ostream version)
| DurationType otb::Stopwatch::GetElapsedMilliseconds | ( | ) | const |
Get the total duration, excluding the current iteration
Referenced by otb::PersistentSamplingFilterBase< TInputImage >::GatherOutputVectors(), otb::PersistentImageToOGRLayerFilter< TImageType >::GenerateData(), otb::VectorDataTransformFilter< TInputVectorData, TOutputVectorData >::GenerateData(), otb::VectorDataToVectorDataFilter< TVectorData, TVectorData >::GenerateData(), otb::VectorDataExtractROI< TVectorData >::GenerateData(), otb::PersistentImageToOGRDataFilter< TImage >::GenerateData(), otb::VectorDataProjectionFilter< TInputVectorData, TOutputVectorData >::GenerateData(), and otb::PersistentImageToOGRLayerSegmentationFilter< TImageType, TSegmentationFilter >::ProcessTile().
|
private |
|
private |
| bool otb::Stopwatch::IsRunning | ( | ) | const |
Returns whether the stopwatch is running
| void otb::Stopwatch::Reset | ( | ) |
Reset the timer
| void otb::Stopwatch::Restart | ( | ) |
Reset and restart the timer
Referenced by otb::PersistentImageToOGRLayerSegmentationFilter< TImageType, TSegmentationFilter >::ProcessTile().
| void otb::Stopwatch::Start | ( | ) |
Start the timer if not already running
|
static |
Creates and starts a new stopwatch instance
Referenced by otb::PersistentSamplingFilterBase< TInputImage >::GatherOutputVectors(), otb::PersistentImageToOGRLayerFilter< TImageType >::GenerateData(), otb::VectorDataTransformFilter< TInputVectorData, TOutputVectorData >::GenerateData(), otb::VectorDataToVectorDataFilter< TVectorData, TVectorData >::GenerateData(), otb::VectorDataExtractROI< TVectorData >::GenerateData(), otb::PersistentImageToOGRDataFilter< TImage >::GenerateData(), otb::VectorDataProjectionFilter< TInputVectorData, TOutputVectorData >::GenerateData(), and otb::PersistentImageToOGRLayerSegmentationFilter< TImageType, TSegmentationFilter >::ProcessTile().
| void otb::Stopwatch::Stop | ( | ) |
Stop the timer if running
Referenced by otb::PersistentSamplingFilterBase< TInputImage >::GatherOutputVectors(), otb::PersistentImageToOGRLayerFilter< TImageType >::GenerateData(), otb::VectorDataTransformFilter< TInputVectorData, TOutputVectorData >::GenerateData(), otb::VectorDataToVectorDataFilter< TVectorData, TVectorData >::GenerateData(), otb::VectorDataExtractROI< TVectorData >::GenerateData(), otb::PersistentImageToOGRDataFilter< TImage >::GenerateData(), otb::VectorDataProjectionFilter< TInputVectorData, TOutputVectorData >::GenerateData(), and otb::PersistentImageToOGRLayerSegmentationFilter< TImageType, TSegmentationFilter >::ProcessTile().
|
private |
Definition at line 88 of file otbStopwatch.h.
|
private |
Definition at line 89 of file otbStopwatch.h.
|
private |
Definition at line 87 of file otbStopwatch.h.
1.8.17