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: 2009-03-03 15:08:48 $
00007   Version:   $Revision: 1.7 $
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 Object
00039 {
00040 public:
00041   typedef RealTimeClock              Self;
00042   typedef Object                     Superclass;
00043   typedef SmartPointer< Self >       Pointer;
00044   typedef SmartPointer< const Self > ConstPointer;
00045 
00047   itkTypeMacro(RealTimeClock, Object);
00048 
00050   itkNewMacro(Self);
00051 
00053   typedef double        TimeStampType;
00054 
00056   typedef double        FrequencyType;
00057 
00059   TimeStampType GetTimeStamp() const;
00060   TimeStampType GetTimestamp() const
00061     {
00062     itkWarningMacro("This call is deprecated. "
00063         "Its naming was not conforming to ITK Style. "
00064         "Please use GetTimeStamp() instead. Note the capital S");
00065     return this->GetTimeStamp();
00066     }
00068 
00070   itkGetConstMacro(Frequency, FrequencyType);
00071 
00072 protected:
00073 
00075   RealTimeClock();
00076 
00078   virtual ~RealTimeClock();
00079 
00081   virtual void PrintSelf( std::ostream& os, Indent indent ) const;
00082 
00083 private:
00084   FrequencyType    m_Frequency;
00085   TimeStampType    m_Difference;
00086   TimeStampType    m_Origin;
00087 };
00088 
00089 } // end of namespace itk
00090 
00091 #endif  // __itkRealTimeClock_h
00092 

Generated at Mon Jul 12 2010 19:34:56 for ITK by doxygen 1.7.1 written by Dimitri van Heesch, © 1997-2000