
- UID
- 11452
- 帖子
- 868
- 精华
- 1
- 威望
- 0
- 阅读权限
- 100
- 注册时间
- 1970-1-1
|
点点滴滴,2004-06-21, 09:03:47
楼主,那个函数是精确到毫秒级,但是做不到1毫秒的时间间隔的……
timeGetTime
The timeGetTime function retrieves the system time, in milliseconds. The system time is the time elapsed since Windows was started.
DWORD timeGetTime(VOID);
Parameters
This function does not take parameters.
Return Values
Returns the system time, in milliseconds. 只要一个延时循环的执行速度小过1ms就可以了
然后每个循环check一次时钟 到时间就跳出循环来 |
|