Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
RealTimeClock for linux-systems. More...
#include <mitkLinuxRealTimeClock.h>
Public Member Functions | |
mitkClassMacro (mitk::LinuxRealTimeClock, mitk::RealTimeClock) | |
Pointer | Clone () const |
LinuxRealTimeClock () | |
basic contructor More... | |
~LinuxRealTimeClock () override | |
basic contructor More... | |
double | GetCurrentStamp () override |
returns the current time in milliseconds as a double More... | |
![]() | |
mitkClassMacroItkParent (RealTimeClock, itk::Object) | |
Static Public Member Functions | |
static Pointer | New () |
![]() | |
static Pointer | New (void) |
instanciates a new, operating-system dependant, instance of mitk::RealTimeClock. More... | |
RealTimeClock for linux-systems.
This class provides realtimeclock for linux-systems. It uses gettimeofday to acquire a current time-value as accurately as possible.
Definition at line 33 of file mitkLinuxRealTimeClock.h.
mitk::LinuxRealTimeClock::LinuxRealTimeClock | ( | ) |
|
override |
Pointer mitk::LinuxRealTimeClock::Clone | ( | ) | const |
|
overridevirtual |
returns the current time in milliseconds as a double
returns the current time in milliseconds
Gets the current time since the Epoch (01.01.1970). gettimeofday returns the elapsed time in microseconds.This value is calculated to milliseconds and returned as a double.
Implements mitk::RealTimeClock.
Definition at line 40 of file mitkLinuxRealTimeClock.cpp.
mitk::LinuxRealTimeClock::mitkClassMacro | ( | mitk::LinuxRealTimeClock | , |
mitk::RealTimeClock | |||
) |
|
static |
Referenced by mitk::RealTimeClock::New().