R&Y: Added DAY RTA Tapp Card and Additional BKK BEM Stored Value Card AIDs to `aid_de...
[RRG-proxmark3.git] / common / util_posix.h
blob8f7ffb09153ff6d93e96765ce79c311859164c6b
1 //-----------------------------------------------------------------------------
2 // Copyright (C) Proxmark3 contributors. See AUTHORS.md for details.
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
14 // See LICENSE.txt for the text of the license.
15 //-----------------------------------------------------------------------------
16 // utilities requiring Posix library functions
17 //-----------------------------------------------------------------------------
19 #ifndef UTIL_POSIX_H__
20 #define UTIL_POSIX_H__
22 #include "common.h"
24 #ifdef _WIN32
25 # include <windows.h>
26 # define sleep(n) Sleep(1000 *(n))
27 # define msleep(n) Sleep((n))
28 #else
29 void msleep(uint32_t n); // sleep n milliseconds
30 #endif // _WIN32
32 uint64_t msclock(void); // a milliseconds clock
33 uint64_t usclock(void); // a microseconds clock
34 #endif