17 #include "itkObject.h"
18 #include "itkObjectFactory.h"
66 class Timer :
public itk::Object
73 typedef itk::SmartPointer< Self >
Pointer;
80 itkTypeMacro(
Timer, itk::Object );
108 itkGetConstMacro( StartTime, time_t );
109 itkGetConstMacro( StopTime, time_t );
110 itkGetConstMacro( ElapsedTime,
double );
112 itkGetConstMacro( ElapsedTimeSec, std::size_t );
113 itkGetConstMacro( ElapsedClock,
double );
114 itkGetConstMacro( ElapsedClockSec,
double );
133 #if defined( __GNUC__ ) && !defined( __APPLE__ ) && !defined( _WIN32 )
134 #define ELX_USE_CLOCK_GETTIME
135 struct timespec m_StartClockMonotonic;
136 struct timespec m_StopClockMonotonic;
156 #endif // end #ifndef __elxTimer_H_
const std::string & PrintElapsedClock(void)
const std::string & PrintElapsedClockSec(void)
TimeDHMSType m_ElapsedTimeDHMS
const std::string & PrintStartTime(void)
itk::SmartPointer< const Self > ConstPointer
std::string m_ElapsedClockSecString
const std::string & PrintElapsedTimeSec(void)
itk::SmartPointer< Self > Pointer
A class to time the different parts of the registration.
std::string m_ElapsedTimeDHMSString
int ElapsedClockAndTime(void)
std::string m_StartTimeString
const std::string & PrintStopTime(void)
const std::string & PrintElapsedTimeDHMS(void)
std::string m_ElapsedTimeSecString
std::vcl_size_t m_ElapsedTimeSec
void operator=(const Self &)
std::string m_StopTimeString
std::vector< std::vcl_size_t > TimeDHMSType
std::string m_ElapsedClockString