21 , m_Time(-1.0), m_ReferenceTime(0.0)
63 itkGenericOutputMacro(
"Trying to use mitk::TimeStamp::Start() " 64 <<
"without an available singleton instance. Either no instance has " 65 <<
"been created (use TimeStamp::CreateInstance) or it has already " 66 <<
"been destroyed.");
88 itkGenericOutputMacro(
"Trying to use mitk::TimeStamp::Stop() " 89 <<
"without an available singleton instance. Either no instance has " 90 <<
"been created (use TimeStamp::CreateInstance) or it has already " 91 <<
"been destroyed.");
113 return (
double) time - this->
GetOffset(device);
double GetElapsed()
returns the time elapsed since calling Start() for the first time in milliseconds ...
void SetRealTimeClock(mitk::RealTimeClock::Pointer Clock)
setter for the internally used RealTimeClock()
mitk::RealTimeClock::Pointer m_RealTimeClock
Time stamp in milliseconds.
std::map< itk::Object::Pointer, double >::iterator m_MapIterator
static mitk::IGTTimeStamp::Pointer s_Instance
double GetOffset(itk::Object::Pointer Device)
returns the offset of this device's starting-time to the reference-time in ms
static IGTTimeStamp * CreateInstance()
creates a new instance of mitkTimeStamp
static IGTTimeStamp * GetInstance()
returns a pointer to the current instance of mitkTimeStamp
void Start(itk::Object::Pointer device)
starts the time-acquisition
void Initialize()
creates a new RealTimeClock
std::map< itk::Object::Pointer, double > m_DeviceMap
void Stop(itk::Object::Pointer device)
stops the time-acqusition
static Pointer New(void)
instanciates a new, operating-system dependant, instance of mitk::RealTimeClock.