ITK  4.0.0
Insight Segmentation and Registration Toolkit
Public Types | Public Member Functions | Private Attributes
itk::TimeProbe Class Reference

Computes the time passed between two points in code. More...

#include <itkTimeProbe.h>

Inheritance diagram for itk::TimeProbe:
Collaboration diagram for itk::TimeProbe:

List of all members.

Public Types

typedef unsigned long CountType
typedef
RealTimeClock::TimeStampType 
TimeStampType

Public Member Functions

virtual
RealTimeClock::TimeStampType 
GetInstantValue (void) const
TimeStampType GetMeanTime (void) const
 TimeProbe ()
virtual ~TimeProbe ()

Private Attributes

RealTimeClock::Pointer m_RealTimeClock

Detailed Description

Computes the time passed between two points in 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.

See also:
RealTimeClock
Wiki Examples:
Examples:

itkVectorImageTest.cxx.

Definition at line 44 of file itkTimeProbe.h.


Member Typedef Documentation

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 51 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 55 of file itkTimeProbe.h.


Constructor & Destructor Documentation

itk::TimeProbe::TimeProbe ( )

Constructor

virtual itk::TimeProbe::~TimeProbe ( ) [virtual]

Destructor


Member Function Documentation

virtual RealTimeClock::TimeStampType itk::TimeProbe::GetInstantValue ( void  ) const [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 >.

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.

Deprecated:
Examples:
itkVectorImageTest.cxx.

Referenced by itk::XMLFilterWatcher::EndFilter().


Member Data Documentation

Definition at line 78 of file itkTimeProbe.h.


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