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

itkTimeProbe.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkTimeProbe.h,v $
00005   Language:  C++
00006   Date:      $Date: 2006/02/05 20:57:46 $
00007   Version:   $Revision: 1.6 $
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 
00021 #include "itkRealTimeClock.h"
00022 
00023 
00024 namespace itk 
00025 {
00026  
00038 class ITKCommon_EXPORT TimeProbe
00039 {
00040 
00041 public:
00042 
00044   typedef unsigned long CountType;
00045 
00048   typedef RealTimeClock::TimeStampType  TimeStampType;
00049 
00050 public:
00051 
00053   TimeProbe();
00054 
00056   ~TimeProbe();
00057 
00059   void Start(void);
00060 
00062   void Stop(void);
00063 
00065   CountType     GetNumberOfStarts(void) const;
00066 
00068   CountType     GetNumberOfStops(void) const;
00069 
00073   TimeStampType GetMeanTime(void) const;
00074 
00075 private:
00076 
00077     TimeStampType   m_Start;
00078     TimeStampType   m_TotalTime;
00079     
00080     CountType       m_NumberOfStarts;
00081     CountType       m_NumberOfStops;
00082 
00083     RealTimeClock::Pointer   m_RealTimeClock;
00084 };
00085 
00086 
00087 }
00088 
00089 #endif
00090 

Generated at Sun Sep 23 14:26:08 2007 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000