00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkTimeProbe.h,v $ 00005 Language: C++ 00006 Date: $Date: 2008-10-26 15:20:21 $ 00007 Version: $Revision: 1.9 $ 00008 00009 Copyright (c) Insight Software Consortium. All rights reserved. 00010 See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 #ifndef __itkTimeProbe_h 00018 #define __itkTimeProbe_h 00019 00020 #include "itkConfigure.h" 00021 #include "itkResourceProbe.h" 00022 #include "itkRealTimeClock.h" 00023 00024 namespace itk 00025 { 00026 00039 class ITKCommon_EXPORT TimeProbe: public 00040 ResourceProbe<RealTimeClock::TimeStampType,RealTimeClock::TimeStampType> 00041 { 00042 00043 public: 00044 00046 typedef unsigned long CountType; 00047 00050 typedef RealTimeClock::TimeStampType TimeStampType; 00051 00052 public: 00053 00055 TimeProbe(); 00056 00058 virtual ~TimeProbe(); 00059 00063 virtual RealTimeClock::TimeStampType GetInstantValue(void)const; 00064 00071 TimeStampType GetMeanTime(void) const; 00072 00073 private: 00074 RealTimeClock::Pointer m_RealTimeClock; 00075 }; 00076 00077 00078 } // end namespace itk 00079 00080 #endif //__itkTimeProbe_h 00081