MITK-IGT
IGT Extension of MITK
|
realtimeclock implementation for windows-systems More...
#include <mitkWindowsRealTimeClock.h>
Public Member Functions | |
mitkClassMacro (WindowsRealTimeClock, mitk::RealTimeClock) | |
itkFactorylessNewMacro (Self) | |
itkCloneMacro (Self) | |
WindowsRealTimeClock () | |
basic contructor | |
virtual | ~WindowsRealTimeClock () |
basic destructor | |
virtual double | GetCurrentStamp () |
returns the current time in milliseconds as a double | |
virtual LARGE_INTEGER | GetFrequency () |
returns the QueryPerformanceFrequency | |
![]() | |
mitkClassMacroItkParent (RealTimeClock, itk::Object) | |
Protected Member Functions | |
void | SetFrequency () |
Protected Attributes | |
LARGE_INTEGER | m_Frequency |
Frequency needed to calculate time from tick-counter. | |
Additional Inherited Members | |
![]() | |
static Pointer | New (void) |
instanciates a new, operating-system dependant, instance of mitk::RealTimeClock. | |
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 33 of file mitkWindowsRealTimeClock.h.
mitk::WindowsRealTimeClock::WindowsRealTimeClock | ( | ) |
basic contructor
Definition at line 23 of file mitkWindowsRealTimeClock.cpp.
|
virtual |
|
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 47 of file mitkWindowsRealTimeClock.cpp.
|
virtual |
returns the QueryPerformanceFrequency
returns the QueryPerformanceFrequency, needed for acquiring the time from ticks
Definition at line 55 of file mitkWindowsRealTimeClock.cpp.
mitk::WindowsRealTimeClock::itkCloneMacro | ( | Self | ) |
mitk::WindowsRealTimeClock::itkFactorylessNewMacro | ( | Self | ) |
mitk::WindowsRealTimeClock::mitkClassMacro | ( | WindowsRealTimeClock | , |
mitk::RealTimeClock | ) |
|
protected |
Definition at line 36 of file mitkWindowsRealTimeClock.cpp.
|
protected |
Frequency needed to calculate time from tick-counter.
Definition at line 70 of file mitkWindowsRealTimeClock.h.