Added Util::wait as guaranteed-time Util::sleep implementation.

This commit is contained in:
Thulinma 2014-08-04 15:57:49 +02:00
parent 48bc30045e
commit cc7ffac297
2 changed files with 26 additions and 1 deletions

View file

@ -4,7 +4,8 @@
#pragma once
namespace Util {
void sleep(int ms); ///< Sleeps for the indicated amount of milliseconds or longer.
void wait(int ms); ///< Sleeps for the indicated amount of milliseconds or longer.
void sleep(int ms); ///< Sleeps for roughly the indicated amount of milliseconds.
long long int getMS(); ///< Gets the current time in milliseconds.
long long int bootSecs(); ///< Gets the current system uptime in seconds.
long long unsigned int getMicros();///<Gets the current time in microseconds.