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: 2003/09/10 14:29:27 $ 00007 Version: $Revision: 1.4 $ 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 <time.h> 00022 #include "itkWin32Header.h" 00023 00024 00025 namespace itk 00026 { 00027 00028 class ITKCommon_EXPORT TimeProbe 00029 { 00030 00031 public: 00032 typedef unsigned long CountType; 00033 typedef clock_t ClickType; 00034 00035 public: 00036 TimeProbe(); 00037 ~TimeProbe(); 00038 00039 void Start(void); 00040 void Stop(void); 00041 00042 CountType GetNumberOfStarts(void) const; 00043 CountType GetNumberOfStops(void) const; 00044 double GetMeanTime(void) const; 00045 00046 private: 00047 00048 ClickType m_Start; 00049 ClickType m_TotalTicks; 00050 CountType m_NumberOfStarts; 00051 CountType m_NumberOfStops; 00052 00053 }; 00054 00055 00056 } 00057 00058 #endif

Generated at Sun Apr 1 02:45:48 2007 for ITK by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2000