fix for client crash in lf hitag eload. Hitag simulation still now working (wip)
[RRG-proxmark3.git] / common / util_posix.h
blob546b4ea3522b6bf2d4def1327894294cdd877b83
1 //-----------------------------------------------------------------------------
2 // Copyright (C) 2010 iZsh <izsh at fail0verflow.com>
3 //
4 // This code is licensed to you under the terms of the GNU GPL, version 2 or,
5 // at your option, any later version. See the LICENSE.txt file for the text of
6 // the license.
7 //-----------------------------------------------------------------------------
8 // utilities requiring Posix library functions
9 //-----------------------------------------------------------------------------
11 #ifndef UTIL_POSIX_H__
12 #define UTIL_POSIX_H__
14 #include "common.h"
16 #ifdef _WIN32
17 # include <windows.h>
18 # define sleep(n) Sleep(1000 *(n))
19 # define msleep(n) Sleep((n))
20 #else
21 void msleep(uint32_t n); // sleep n milliseconds
22 #endif // _WIN32
24 uint64_t msclock(void); // a milliseconds clock
26 #endif