i6engine  1.0
i6e::utils::RealTimeClock Class Reference

#include <D:/Projekte/i6engine/libs/i6engine-utils/include/i6engine/utils/RealTimeClock.h>

Public Member Functions

 RealTimeClock (const boost::function< void(void)> &f)
 constructor taking the function to be called during update More...
 
 ~RealTimeClock ()
 destructor, stopping threads and cleaning up More...
 
uint64_t getCurrentTime (uint64_t lastTime) const
 returns the time between the current time and the creation of the clock in microseconds More...
 
void setCurrentTime (uint64_t time)
 sets the current time (only at clients, time will be synchronized by server) More...
 
void Stop ()
 stops the clock More...
 

Protected Member Functions

void Init ()
 

Detailed Description

Definition at line 38 of file RealTimeClock.h.

Constructor & Destructor Documentation

i6e::utils::RealTimeClock::RealTimeClock ( const boost::function< void(void)> &  f)
explicit

constructor taking the function to be called during update

i6e::utils::RealTimeClock::~RealTimeClock ( )

destructor, stopping threads and cleaning up

Member Function Documentation

uint64_t i6e::utils::RealTimeClock::getCurrentTime ( uint64_t  lastTime) const

returns the time between the current time and the creation of the clock in microseconds

void i6e::utils::RealTimeClock::Init ( )
protected
void i6e::utils::RealTimeClock::setCurrentTime ( uint64_t  time)

sets the current time (only at clients, time will be synchronized by server)

void i6e::utils::RealTimeClock::Stop ( )

stops the clock


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