projects
/
proxmark3-svn
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CHG: increased timeout when calling "hw tune".
[proxmark3-svn]
/
client
/
sleep.h
diff --git
a/client/sleep.h
b/client/sleep.h
index 62d9f4d16974e27ecbc85926589c2fb8b173046a..81e1dea02eaf96a947b7486b4f3a262f639225aa 100644
(file)
--- a/
client/sleep.h
+++ b/
client/sleep.h
@@
-12,13
+12,16
@@
#define SLEEP_H__
#ifdef _WIN32
#define SLEEP_H__
#ifdef _WIN32
-#include <windows.h>
-#define sleep(n) Sleep(1000 * n)
-#define msleep(n) Sleep(n)
+#
include <windows.h>
+#
define sleep(n) Sleep(1000 * n)
+#
define msleep(n) Sleep(n)
#else
#else
-#include <unistd.h>
-#define msleep(n) usleep(1000 * n)
-#endif
+# include <inttypes.h>
+# include <unistd.h>
+ void nsleep(uint64_t n);
+# define msleep(n) nsleep(1000000 * n)
+# define usleep(n) nsleep(1000 * n)
+#endif // _WIN32
-#endif
+#endif
// SLEEP_H__
Impressum
,
Datenschutz