Added Util::wait as guaranteed-time Util::sleep implementation.
This commit is contained in:
parent
48bc30045e
commit
cc7ffac297
2 changed files with 26 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue