X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/a553f2674865fa544d04ca7b8194e30c008644ae..6c81ae5574e2f2b9e0b62f9dafe602d35f23739a:/client/sleep.h?ds=inline diff --git a/client/sleep.h b/client/sleep.h index 81f4e060..81e1dea0 100644 --- a/client/sleep.h +++ b/client/sleep.h @@ -11,14 +11,17 @@ #ifndef SLEEP_H__ #define SLEEP_H__ -#ifdef WIN32 -#include -#define sleep(n) Sleep(1000 * n) -#define msleep(n) Sleep(n) +#ifdef _WIN32 +# include +# define sleep(n) Sleep(1000 * n) +# define msleep(n) Sleep(n) #else -#include -#define msleep(n) usleep(1000 * n) -#endif +# include +# include + void nsleep(uint64_t n); +# define msleep(n) nsleep(1000000 * n) +# define usleep(n) nsleep(1000 * n) +#endif // _WIN32 -#endif +#endif // SLEEP_H__