Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itk::TimeProbe Class Reference

Class for computing the time passed between two points in the code. More...

#include <itkTimeProbe.h>

Collaboration diagram for itk::TimeProbe:

Collaboration graph
[legend]
List of all members.

Public Types

typedef unsigned long CountType
typedef RealTimeClock::TimeStampType TimeStampType

Public Member Functions

 TimeProbe ()
 ~TimeProbe ()
void Start (void)
void Stop (void)
CountType GetNumberOfStarts (void) const
CountType GetNumberOfStops (void) const
TimeStampType GetMeanTime (void) const

Detailed Description

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.

See also:
RealTimeClock

Definition at line 39 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.

Definition at line 45 of file itkTimeProbe.h.

typedef RealTimeClock::TimeStampType itk::TimeProbe::TimeStampType
 

Type for measuring time. See the RealTimeClock class for details on the precision and units of this clock signal

Definition at line 49 of file itkTimeProbe.h.


Constructor & Destructor Documentation

itk::TimeProbe::TimeProbe  ) 
 

Constructor

itk::TimeProbe::~TimeProbe  ) 
 

Destructor


Member Function Documentation

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.

CountType itk::TimeProbe::GetNumberOfStarts void   )  const
 

Returns the number of times that the probe has been started.

CountType itk::TimeProbe::GetNumberOfStops void   )  const
 

Returns the number of times that the probe has been stopped.

void itk::TimeProbe::Start void   ) 
 

Start counting the time

void itk::TimeProbe::Stop void   ) 
 

Stop counting the time


The documentation for this class was generated from the following file:
Generated at Thu May 25 02:30:24 2006 for ITK by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2000