IGSTK
Main Page
Namespaces
Classes
Files
File List
File Members
Source
igstkRealTimeClock.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Image Guided Surgery Software Toolkit
4
Module: $RCSfile: igstkRealTimeClock.h,v $
5
Language: C++
6
Date: $Date: 2008-02-11 01:41:51 $
7
Version: $Revision: 1.5 $
8
9
Copyright (c) ISC Insight Software Consortium. All rights reserved.
10
See IGSTKCopyright.txt or http://www.igstk.org/copyright.htm for details.
11
12
This software is distributed WITHOUT ANY WARRANTY; without even
13
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14
PURPOSE. See the above copyright notices for more information.
15
16
=========================================================================*/
17
18
19
#ifndef __igstkRealTimeClock_h
20
#define __igstkRealTimeClock_h
21
22
#include "itkIndent.h"
23
24
namespace
igstk
25
{
26
36
class
RealTimeClock
37
{
38
39
public
:
40
42
typedef
double
TimeStampType
;
43
45
static
TimeStampType
GetTimeStamp
();
46
50
static
void
Initialize
();
51
53
static
void
Print
(std::ostream& os, itk::Indent indent=0);
54
56
typedef
double
FrequencyType
;
57
58
protected
:
59
61
RealTimeClock
();
62
64
virtual
~RealTimeClock
();
65
66
static
void
PrintSelf
( std::ostream& os, itk::Indent indent );
67
68
private
:
69
70
static
FrequencyType
m_Frequency;
71
static
TimeStampType
m_Difference;
72
static
TimeStampType
m_Origin;
73
74
};
75
76
}
// end of namespace itk
77
78
79
#endif // __itkRealTimeClock_h
Generated on Thu Mar 20 2014 13:04:04 for IGSTK by
1.8.1.2