#include <OSUtils.h>
Static Public Member Functions | |
| static double | currentTime () |
| static void | sleep (double time) |
|
|
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.
|
|
|
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.
|
1.4.6