15 #ifndef __igtlTimeStamp_h
16 #define __igtlTimeStamp_h
23 #if defined(WIN32) || defined(_WIN32)
54 void SetTime(
double tm);
57 void SetTime(igtlUint32 second, igtlUint32 nanosecond);
60 void SetTime(igtlUint64 tm);
63 double GetTimeStamp();
66 void GetTimeStamp(igtlUint32* second, igtlUint32* nanosecond);
69 igtlUint64 GetTimeStampUint64();
81 virtual void PrintSelf( std::ostream& os)
const;
86 igtlInt32 m_Frequency;
92 igtlInt32 m_Nanosecond;
95 #if defined(WIN32) || defined(_WIN32)
103 time_t m_WinTimeOrigin;
104 clock_t m_WinClockOrigin;
112 #endif // __igtlTimeStamp_h
#define igtlTypeMacro(thisClass, superclass)
The "igtl" namespace contains all OpenIGTLink classes. There are several nested namespaces within the...
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
Base class for most igtl classes.
#define igtlGetConstMacro(name, type)