ot::OSUtils Class Reference

#include <OSUtils.h>

List of all members.

Static Public Member Functions

static double currentTime ()
static void sleep (double time)


Member Function Documentation

double ot::OSUtils::currentTime  )  [static]
 

returns the current time in milliseconds since 1.1.1970. Someone said this should probably be a long, I used a double because VRML does too.

Note:
check whether double or long is better
Returns:
double containing milliseconds since ...

void ot::OSUtils::sleep double  time  )  [static]
 

sleeps for the specified amount of milliseconds and yields the execution to another thread. If 0 is specified, only a yield is performed (implementation based on Sleep (Win32), sginap (SGI)). The implementation is actually not accurate enough, because both systems provide only timeslices of 1/100 of a second. So all sleep times will actually be multiples of 1/100 of a second.

  • time time to sleep in milliseconds


The documentation for this class was generated from the following files:
Generated on Wed Feb 28 15:29:10 2007 for NaviTrack by  doxygen 1.4.6