1 //-----------------------------------------------------------------------------
2 // Copyright (C) 2010 iZsh <izsh at fail0verflow.com>
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
7 //-----------------------------------------------------------------------------
8 // utilities requiring Posix library functions
9 //-----------------------------------------------------------------------------
11 #ifndef UTIL_POSIX_H__
12 #define UTIL_POSIX_H__
18 # define sleep(n) Sleep(1000 *(n))
19 # define msleep(n) Sleep((n))
21 void msleep(uint32_t n
); // sleep n milliseconds
24 uint64_t msclock(void); // a milliseconds clock