ITK  4.0.0
Insight Segmentation and Registration Toolkit
itkTimeProbe.h
Go to the documentation of this file.
00001 /*=========================================================================
00002  *
00003  *  Copyright Insight Software Consortium
00004  *
00005  *  Licensed under the Apache License, Version 2.0 (the "License");
00006  *  you may not use this file except in compliance with the License.
00007  *  You may obtain a copy of the License at
00008  *
00009  *         http://www.apache.org/licenses/LICENSE-2.0.txt
00010  *
00011  *  Unless required by applicable law or agreed to in writing, software
00012  *  distributed under the License is distributed on an "AS IS" BASIS,
00013  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  *  See the License for the specific language governing permissions and
00015  *  limitations under the License.
00016  *
00017  *=========================================================================*/
00018 #ifndef __itkTimeProbe_h
00019 #define __itkTimeProbe_h
00020 
00021 #include "itkConfigure.h"
00022 #include "itkResourceProbe.h"
00023 #include "itkRealTimeClock.h"
00024 
00025 namespace itk
00026 {
00044 class ITKCommon_EXPORT TimeProbe:public
00045   ResourceProbe< RealTimeClock::TimeStampType, RealTimeClock::TimeStampType >
00046 {
00047 public:
00048 
00051   typedef unsigned long CountType;
00052 
00055   typedef RealTimeClock::TimeStampType TimeStampType;
00056 public:
00057 
00059   TimeProbe();
00060 
00062   virtual ~TimeProbe();
00063 
00067   virtual RealTimeClock::TimeStampType GetInstantValue(void) const;
00068 
00075   TimeStampType GetMeanTime(void) const;
00076 
00077 private:
00078   RealTimeClock::Pointer m_RealTimeClock;
00079 };
00080 } // end namespace itk
00081 
00082 #endif //__itkTimeProbe_h
00083