Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

我没有用WaitForSingleObject卡时

Posted by hawk at 2005-03-25 12:04:25
In Reply To:ft,这些东西不是Windows API吗?我如何不在windows上面试? Posted by:frkstyc at 2005-03-25 11:45:49
再说了,你所谓等1000ms得到500ms也是正常的
因为要得就是user time
而不是起始时间和结束时间,这个会随着系统负荷的变化更加大
> 试过啦,GetProcessTimes的精度是10ms或者15ms(可以用GetSystemTimeAdjustment获得),用WaitForSingleObject卡时出来的结果变化很大,卡3000ms返回2974和3024都有,最疯狂的一次卡1000然后GPT告诉我500
> 用QPF/QPC最好把QPC放在CreateProcess后面,CreateProcess好像挺耗时间的样子

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator