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: 2002/03/19 20:02:02 $
00007   Version:   $Revision: 1.2 $
00008 
00009   Copyright (c) 2002 Insight 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 
00023 
00024 namespace itk 
00025 {
00026  
00027 class TimeProbe
00028 {
00029 
00030 public:
00031   typedef unsigned long CountType;
00032   typedef clock_t       ClickType;
00033 
00034 public:
00035   TimeProbe();
00036   ~TimeProbe();
00037 
00038   void Start(void);
00039   void Stop(void);
00040 
00041   CountType GetNumberOfStarts(void) const;
00042   CountType GetNumberOfStops(void) const;
00043   double    GetMeanTime(void) const;
00044 
00045 private:
00046 
00047     ClickType   m_Start;
00048     ClickType   m_TotalTicks;
00049     CountType   m_NumberOfStarts;
00050     CountType   m_NumberOfStops;
00051 
00052 };
00053 
00054 
00055 }
00056 
00057 #endif

Generated at Wed Mar 12 01:13:11 2003 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000