X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/cb64309e4b187ada12e66c1a782f243b7924d32f..ff7bb4ef177ba1c680dd9af5a1e30d4f7f29c65f:/client/sleep.h diff --git a/client/sleep.h b/client/sleep.h index 62d9f4d1..81e1dea0 100644 --- a/client/sleep.h +++ b/client/sleep.h @@ -12,13 +12,16 @@ #define SLEEP_H__ #ifdef _WIN32 -#include -#define sleep(n) Sleep(1000 * n) -#define msleep(n) Sleep(n) +# 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__