]> git.zerfleddert.de Git - proxmark3-svn/blame - client/sleep.h
Moved LogTraceHitag to BigBuf (no changes to the function ... yet)
[proxmark3-svn] / client / sleep.h
CommitLineData
a553f267 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//-----------------------------------------------------------------------------
10
cbb03be9 11#ifndef SLEEP_H__
12#define SLEEP_H__
13
cb64309e 14#ifdef _WIN32
759c16b3 15# include <windows.h>
16# define sleep(n) Sleep(1000 * n)
17# define msleep(n) Sleep(n)
cbb03be9 18#else
759c16b3 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
cbb03be9 25
759c16b3 26#endif // SLEEP_H__
cbb03be9 27
Impressum, Datenschutz