Extend b3Clock to expose the system current time in milliseconds. Replace #include time.h with b3Clock.

This commit is contained in:
Benjamin Ellenberger
2016-11-08 22:16:08 +01:00
parent 1fc36d0a9f
commit a76187fea5
3 changed files with 60 additions and 5 deletions

View File

@@ -28,6 +28,9 @@ public:
/// the Clock was created.
double getTimeInSeconds();
/// Gets the system time in milliseconds
double getSystemTimeMilliseconds();
///Sleep for 'microSeconds', to yield to other threads and not waste 100% CPU cycles.
///Note that some operating systems may sleep a longer time.
static void usleep(int microSeconds);