Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
WifiRobot/RoombaControl/irobot/irobotTime.cpp
- Committer:
- wueric
- Date:
- 2014-12-09
- Revision:
- 0:2deb247ab4bd
File content as of revision 0:2deb247ab4bd:
#include "irobotTime.h"
#ifdef _WIN32
#include <windows.h>
#elif defined(__unix__)
#include <unistd.h>
#endif
void irobotDelayMs(const int32_t ms){
#ifdef _WIN32
Sleep(ms);
#elif defined(__unix__)
usleep((ms) * 1000);
#endif
}
