TimeServer Class Reference
[Kernel Module]

#include <timeserver.h>

Inheritance diagram for TimeServer:

RootServer< TimeServer > Root Server< TimeServer > Object TreeNode< Root > Referenced Counted Serialized List< Root > ListNode< Root > GlfwTimeServer

List of all members.

Detailed Description

Time server interface.

Public Member Functions

 TimeServer (const char *id)
virtual ~TimeServer ()
virtual bool Trigger ()
void StartTime ()
void StopTime ()
virtual double GetRealTime ()
double GetTime ()
double GetFrameTime ()
double GetMinFrameTime ()
double GetFixFrameTime ()
ulong_t GetFrame ()
void SetTime (double time)
void SetMinFrameTime (double min_time, bool wait=true)
void SetFixFrameTime (double fix_time, bool wait=false)
float GetFPS ()
bool IsFPSRefreshed ()
void ShowFPS (bool show)
void SetFPSInterval (double interval)

Private Attributes

bool started
double start_time
double time
double frame_time
double min_frame_time
double fix_frame_time
bool wait_frame_time
ulong_t frame
float fps
double fps_last_time
ulong_t fps_last_frame
double fps_interval
bool fps_updated
bool fps_show
Ref< Envfps_variable

Constructor & Destructor Documentation

TimeServer::TimeServer ( const char *  id  ) 

TimeServer::~TimeServer (  )  [virtual]

Member Function Documentation

bool TimeServer::Trigger ( void   )  [virtual]

Reimplemented from Server< TimeServer >.

void TimeServer::StartTime (  )  [inline]

void TimeServer::StopTime (  )  [inline]

double TimeServer::GetRealTime (  )  [inline, virtual]

Reimplemented in GlfwTimeServer.

double TimeServer::GetTime (  )  [inline]

double TimeServer::GetFrameTime (  )  [inline]

double TimeServer::GetMinFrameTime (  )  [inline]

double TimeServer::GetFixFrameTime (  )  [inline]

ulong_t TimeServer::GetFrame (  )  [inline]

void TimeServer::SetTime ( double  time  )  [inline]

void TimeServer::SetMinFrameTime ( double  min_time,
bool  wait = true 
) [inline]

void TimeServer::SetFixFrameTime ( double  fix_time,
bool  wait = false 
) [inline]

float TimeServer::GetFPS (  )  [inline]

bool TimeServer::IsFPSRefreshed (  )  [inline]

void TimeServer::ShowFPS ( bool  show  ) 

void TimeServer::SetFPSInterval ( double  interval  )  [inline]

Member Data Documentation

bool TimeServer::started [private]

double TimeServer::start_time [private]

double TimeServer::time [private]

double TimeServer::frame_time [private]

double TimeServer::min_frame_time [private]

double TimeServer::fix_frame_time [private]

bool TimeServer::wait_frame_time [private]

ulong_t TimeServer::frame [private]

float TimeServer::fps [private]

double TimeServer::fps_last_time [private]

ulong_t TimeServer::fps_last_frame [private]

double TimeServer::fps_interval [private]

bool TimeServer::fps_updated [private]

bool TimeServer::fps_show [private]

Root* TimeServer::profilers [private]

Ref<Env> TimeServer::fps_variable [private]

The documentation for this class was generated from the following files:
Generated on Sat Oct 20 14:47:36 2007 for Dark Oberon by  doxygen 1.5.3