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

RealTimeClock for linux-systems. More...

#include <mitkLinuxRealTimeClock.h>

Inheritance diagram for mitk::LinuxRealTimeClock:
Collaboration diagram for mitk::LinuxRealTimeClock:

Public Member Functions

 mitkClassMacro (mitk::LinuxRealTimeClock, mitk::RealTimeClock)
 
Pointer Clone () const
 
 LinuxRealTimeClock ()
 basic contructor More...
 
virtual ~LinuxRealTimeClock ()
 basic contructor More...
 
virtual double GetCurrentStamp () override
 returns the current time in milliseconds as a double 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...
 

Detailed Description

RealTimeClock for linux-systems.

This class provides realtimeclock for linux-systems. It uses gettimeofday to acquire a current time-value as accurately as possible.

Returns
Returns the current time since the Epoch (01.01.1970) in milliseconds as a double

Definition at line 37 of file mitkLinuxRealTimeClock.h.

Constructor & Destructor Documentation

mitk::LinuxRealTimeClock::LinuxRealTimeClock ( )

basic contructor

basic constructor

Definition at line 25 of file mitkLinuxRealTimeClock.cpp.

mitk::LinuxRealTimeClock::~LinuxRealTimeClock ( )
virtual

basic contructor

basic destructor

Definition at line 32 of file mitkLinuxRealTimeClock.cpp.

Member Function Documentation

Pointer mitk::LinuxRealTimeClock::Clone ( ) const
double mitk::LinuxRealTimeClock::GetCurrentStamp ( )
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.

Returns
Returns the elapsed time in milliseconds

Implements mitk::RealTimeClock.

Definition at line 44 of file mitkLinuxRealTimeClock.cpp.

mitk::LinuxRealTimeClock::mitkClassMacro ( mitk::LinuxRealTimeClock  ,
mitk::RealTimeClock   
)
static Pointer mitk::LinuxRealTimeClock::New ( )
static

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