Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::WindowsRealTimeClock Class Reference

realtimeclock implementation for windows-systems More...

#include <mitkWindowsRealTimeClock.h>

Inheritance diagram for mitk::WindowsRealTimeClock:
Collaboration diagram for mitk::WindowsRealTimeClock:

Public Member Functions

 mitkClassMacro (WindowsRealTimeClock, mitk::RealTimeClock)
 
Pointer Clone () const
 
 WindowsRealTimeClock ()
 basic contructor More...
 
virtual ~WindowsRealTimeClock ()
 basic destructor More...
 
virtual double GetCurrentStamp ()
 returns the current time in milliseconds as a double More...
 
virtual LARGE_INTEGER GetFrequency ()
 returns the QueryPerformanceFrequency More...
 
- Public Member Functions inherited from mitk::RealTimeClock
 mitkClassMacroItkParent (RealTimeClock, itk::Object)
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from mitk::RealTimeClock
static Pointer New (void)
 instanciates a new, operating-system dependant, instance of mitk::RealTimeClock. More...
 

Protected Member Functions

void SetFrequency ()
 

Protected Attributes

LARGE_INTEGER m_Frequency
 Frequency needed to calculate time from tick-counter. More...
 

Detailed Description

realtimeclock implementation for windows-systems

This class provides a RealTimeClock for windows-systems. Internally, it uses the QueryPerformanceCounter and the QueryPerformaceFrequency. It polls the current tick-counter, that counts from bootup. is supposed to be the most accurate time you can get on a windows-system.

Definition at line 37 of file mitkWindowsRealTimeClock.h.

Constructor & Destructor Documentation

mitk::WindowsRealTimeClock::WindowsRealTimeClock ( )

basic contructor

Definition at line 25 of file mitkWindowsRealTimeClock.cpp.

References SetFrequency().

mitk::WindowsRealTimeClock::~WindowsRealTimeClock ( )
virtual

basic destructor

basic contructor

Definition at line 33 of file mitkWindowsRealTimeClock.cpp.

Member Function Documentation

Pointer mitk::WindowsRealTimeClock::Clone ( ) const
double mitk::WindowsRealTimeClock::GetCurrentStamp ( )
virtual

returns the current time in milliseconds as a double

Uses the QueryPerformanceCounter to acquire an accurate time. (Ticks counted / Frequency) = time in ms

Implements mitk::RealTimeClock.

Definition at line 49 of file mitkWindowsRealTimeClock.cpp.

LARGE_INTEGER mitk::WindowsRealTimeClock::GetFrequency ( )
virtual

returns the QueryPerformanceFrequency

returns the QueryPerformanceFrequency, needed for acquiring the time from ticks

Definition at line 69 of file mitkWindowsRealTimeClock.cpp.

mitk::WindowsRealTimeClock::mitkClassMacro ( WindowsRealTimeClock  ,
mitk::RealTimeClock   
)
static Pointer mitk::WindowsRealTimeClock::New ( )
static
void mitk::WindowsRealTimeClock::SetFrequency ( )
protected

Definition at line 38 of file mitkWindowsRealTimeClock.cpp.

Referenced by WindowsRealTimeClock().

Member Data Documentation

LARGE_INTEGER mitk::WindowsRealTimeClock::m_Frequency
protected

Frequency needed to calculate time from tick-counter.

Definition at line 74 of file mitkWindowsRealTimeClock.h.


The documentation for this class was generated from the following files: