OGLplus (0.52.0) a C++ wrapper for OpenGL

oglplus::ExampleClock Class Reference

Class measuring the simulation time of an Example. More...

#include </home/chochlik/devel/oglplus/example/oglplus/example.hpp>

Public Member Functions

void Update (double real_time)
 Update the clock by providing real time.
 
void Advance (double seconds)
 Advances the clock.
 
void Pace (double pace)
 Set the pace by which the sim. time advances compared to real-time.
 
double Time (void) const
 Equivalent to Now().Seconds()
 
ExampleTimePeriod RealTime (void) const
 Returns the real time elapsed since the start of the example.
 
ExampleTimePeriod Now (void) const
 Returns the simulation time elapsed since the start of the example.
 
ExampleTimePeriod Interval (void) const
 Returns the time elapsed between the last and the previous Update.
 

Detailed Description

Class measuring the simulation time of an Example.


The documentation for this class was generated from the following file:
  • /home/chochlik/devel/oglplus/example/oglplus/example.hpp

Copyright © 2010-2014 Matúš Chochlík, University of Žilina, Žilina, Slovakia.
<matus.chochlik -at- fri.uniza.sk>
<chochlik -at -gmail.com>
Documentation generated on Mon Sep 22 2014 by Doxygen (version 1.8.6).