I needed a sleep function for win32 and was unwilling to
install cygwin.
I ended up using timeGetTime() and comparing to
a base timeGetTime() value + argv[1] * 1000 at program start.
The program works with an offset of 5-10ms, but the
cpu usage is , as expected, horrible.
Is there a better, more sophisticated way of doing
this on win32?
I'm using lcc, so some libs and header files are
not readily available.
install cygwin.
I ended up using timeGetTime() and comparing to
a base timeGetTime() value + argv[1] * 1000 at program start.
The program works with an offset of 5-10ms, but the
cpu usage is , as expected, horrible.
Is there a better, more sophisticated way of doing
this on win32?
I'm using lcc, so some libs and header files are
not readily available.