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

itkRealTimeClock.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkRealTimeClock.h,v $
00005   Language:  C++
00006   Date:      $Date: 2005/05/24 22:39:58 $
00007   Version:   $Revision: 1.2 $
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 
00018 #ifndef __itkRealTimeClock_h
00019 #define __itkRealTimeClock_h
00020 
00021 #include <itkMacro.h>
00022 #include <itkObject.h>
00023 #include <itkObjectFactory.h>
00024 
00025 namespace itk
00026 {
00027 
00038 class ITKCommon_EXPORT RealTimeClock : public itk::Object
00039 {
00040   
00041 public:
00042   
00043   typedef RealTimeClock Self;
00044   typedef itk::Object Superclass;
00045   typedef itk::SmartPointer< Self > Pointer;
00046   typedef itk::SmartPointer< const Self > ConstPointer;
00047 
00049   itkTypeMacro(RealTimeClock, Object);
00050 
00052   itkNewMacro(Self);
00053 
00055   double GetTimestamp() const;
00056 
00058   itkGetConstMacro(Frequency, double);
00059 
00060 protected:
00061 
00063   RealTimeClock();
00064 
00066   virtual ~RealTimeClock();
00067 
00069   virtual void PrintSelf( std::ostream& os, itk::Indent indent ) const;
00070 
00071 private:
00072   
00073   double m_Frequency;
00074 
00075   double m_Difference;
00076 
00077   double m_Origin;
00078 
00079 };
00080 
00081 } // end of namespace itk
00082 
00083 
00084 #endif  // __itkRealTimeClock_h

Generated at Tue Aug 30 16:45:59 2005 for ITK by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2000