15#ifndef __igtlTimeStamp_h
16#define __igtlTimeStamp_h
23#if defined(WIN32) || defined(_WIN32)
57 void SetTime(igtlUint32 second, igtlUint32 nanosecond);
93 igtlInt32 m_Frequency;
99 igtlInt32 m_Nanosecond;
102#if defined(WIN32) || defined(_WIN32)
110 time_t m_WinTimeOrigin;
111 clock_t m_WinClockOrigin;
Base class for most igtl classes.
igtlTypeMacro(TimeStamp, Object)
igtlUint64 GetTimeStampInNanoseconds() const
void GetTime()
Gets the current time from the system's clock and save it as a time stamp.
void GetTimeStamp(igtlUint32 *second, igtlUint32 *nanosecond)
Gets the time stamp. The second and nanosecond parts are stored in 'second' and 'nanosecond'.
double GetTimeStamp()
Gets the time stamp. Returns a double floating-point value.
igtlGetConstMacro(Second, igtlUint32)
Gets the second part of the time stamp.
igtlGetConstMacro(Frequency, igtlUint32)
Gets the frequency of a clock.
virtual void PrintSelf(std::ostream &os) const
igtlGetConstMacro(Nanosecond, igtlUint32)
Gets the fraction of second part of the time stamp.
void SetTime(igtlUint64 tm)
Sets the time by using 64-bit fixed-point expression used in OpenIGTLink.
void SetTime(igtlUint32 second, igtlUint32 nanosecond)
Sets the time by second and nanosecond.
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
void SetTimeInNanoseconds(igtlUint64 tm)
void SetTime(double tm)
Sets the time by double floating-point value.
igtlUint64 GetTimeStampUint64()
Gets the time stamp. Returns a 64-bit fixed-point expression used in OpenIGTLink.
The "igtl" namespace contains all OpenIGTLink classes. There are several nested namespaces within the...