Posted on 2010-09-11 13:50
kongkongzi 阅读(177)
评论(0) 编辑 收藏 引用 所属分类:
windows programming
#ifdef WIN32
# include <Windows.h>
#else
# include <unistd.h>
#endif
typedef unsigned int uint32;
inline void sleepms(int ms)
{
#ifdef WIN32
::Sleep( uint32(ms) );
#else
::usleep(ms * 1000);
#endif
}