opensurgsim
Namespaces | Typedefs | Functions
Clock.h File Reference

Place for a simple wrapper around boost. More...

#include <boost/chrono.hpp>
#include <boost/thread.hpp>

Go to the source code of this file.

Namespaces

 SurgSim
 Wraps glewInit() to separate the glew opengl definitions from the osg opengl definitions only imgui needs glew but we need to call glewInit() from a osg callback, using this call we avoid getting warnings about redefinitions.
 

Typedefs

typedef boost::chrono::high_resolution_clock SurgSim::Framework::Clock
 Wraps around the actual clock we are using.
 

Functions

template<class C , class D >
void SurgSim::Framework::sleep_until (const boost::chrono::time_point< C, D > &time)
 A more accurate sleep_until that accounts for scheduler errors. More...
 

Detailed Description

Place for a simple wrapper around boost.

Function Documentation

§ sleep_until()

template<class C , class D >
void SurgSim::Framework::sleep_until ( const boost::chrono::time_point< C, D > &  time)

A more accurate sleep_until that accounts for scheduler errors.

Template Parameters
CClock type
DDuration type
Parameters
timeThe time point in absolute time to sleep until