Advertisement
Guest User

Sleep検証

a guest
Nov 10th, 2020
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. #NoEnv
  3. ListLines Off
  4. Process, Priority,, H
  5. SetBatchLines -1
  6.  
  7. F1::
  8. Time := A_TickCount
  9. DllCall("Sleep", "UInt", 10000)
  10. ; Sleep 10000
  11. MsgBox % A_TickCount - Time
  12. return
  13.  
  14. F2::
  15. Time := A_TickCount
  16. Loop 200
  17. DllCall("Sleep", "UInt", 50)
  18. ; Sleep 50 ; 試行回数が多いと一の位の丸められが多くなるので誤差発生?
  19. MsgBox % A_TickCount - Time
  20. return
  21.  
  22. Esc::ExitApp
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement