IGSTK

/build/buildd/igstk-4.2.0/Source/igstkRealTimeClock.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Image Guided Surgery Software Toolkit
00004   Module:    $RCSfile: igstkRealTimeClock.h,v $
00005   Language:  C++
00006   Date:      $Date: 2008-02-11 01:41:51 $
00007   Version:   $Revision: 1.5 $
00008 
00009   Copyright (c) ISC  Insight Software Consortium.  All rights reserved.
00010   See IGSTKCopyright.txt or http://www.igstk.org/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 
00019 #ifndef __igstkRealTimeClock_h
00020 #define __igstkRealTimeClock_h
00021 
00022 #include "itkIndent.h"
00023 
00024 namespace igstk
00025 {
00026 
00036 class RealTimeClock 
00037 {
00038   
00039 public:
00040   
00042   typedef double        TimeStampType;
00043 
00045   static TimeStampType  GetTimeStamp();
00046 
00050   static void Initialize();
00051 
00053   static void Print(std::ostream& os, itk::Indent indent=0);
00054 
00056   typedef double        FrequencyType;
00057 
00058 protected:
00059 
00061   RealTimeClock();
00062 
00064   virtual ~RealTimeClock();
00065 
00066   static void PrintSelf( std::ostream& os, itk::Indent indent );
00067 
00068 private:
00069   
00070   static  FrequencyType    m_Frequency;
00071   static  TimeStampType    m_Difference;
00072   static  TimeStampType    m_Origin;
00073 
00074 };
00075 
00076 } // end of namespace itk
00077 
00078 
00079 #endif  // __itkRealTimeClock_h