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);
64 void SetTimeInNanoseconds(igtlUint64 tm);
67 double GetTimeStamp();
70 void GetTimeStamp(igtlUint32* second, igtlUint32* nanosecond);
73 igtlUint64 GetTimeStampUint64();
77 igtlUint64 GetTimeStampInNanoseconds()
const;
88 virtual void PrintSelf( std::ostream& os)
const;
93 igtlInt32 m_Frequency;
99 igtlInt32 m_Nanosecond;
102 #if defined(WIN32) || defined(_WIN32)
110 time_t m_WinTimeOrigin;
111 clock_t m_WinClockOrigin;
119 #endif // __igtlTimeStamp_h