added more keys (@equipter)
[RRG-proxmark3.git] / tools / mf_nonce_brute / sleep.h
blob8465b604195b154ad5d2cf2126358069f3726a7b
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 // platform-independant sleep macros
9 //-----------------------------------------------------------------------------
11 #ifndef SLEEP_H__
12 #define SLEEP_H__
14 #ifdef _WIN32
15 # include <windows.h>
16 # define sleep(n) Sleep(1000 * n)
17 # define msleep(n) Sleep(n)
18 #else
19 # include <inttypes.h>
20 # include <unistd.h>
21 void nsleep(uint64_t n);
22 # define msleep(n) nsleep(1000000 * n)
23 # define usleep(n) nsleep(1000 * n)
24 #endif // _WIN32
26 #endif // SLEEP_H__