home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / mswindo / programm / misc / 4910 < prev    next >
Encoding:
Text File  |  1993-01-12  |  1.1 KB  |  31 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!howland.reston.ans.net!spool.mu.edu!news.cs.indiana.edu!umn.edu!csus.edu!netcom.com!hill
  3. From: hill@netcom.com (Tom Hill)
  4. Subject: Re: timer resolution
  5. Message-ID: <1993Jan13.031441.4031@netcom.com>
  6. Keywords: timer ms
  7. Organization: Netcom Online Communications Services (408-241-9760 login: guest)
  8. References: <1993Jan12.221148.693@muug.mb.ca>
  9. Date: Wed, 13 Jan 1993 03:14:41 GMT
  10. Lines: 19
  11.  
  12. In article <1993Jan12.221148.693@muug.mb.ca> gbrandt@muug.mb.ca (Gregor Brandt) writes:
  13. >I need help with the windows timer resolution.   Petzold says its limited
  14. >to the PC clock resolution, which appears to be true.  I however need
  15. >something more accurate, in the range of 5 ro 15ms.  Can anybody help
  16. >me?
  17. >Gregor
  18. >
  19. For resolution down to around a millisecond, try timeBeginPeriod and 
  20. timeSetEvent in the multimedia developer's kit (included with c7.0).
  21.  
  22. For the best time (not callback) information, the Virtual Timer Device
  23. provides an api for reading the 8253, which gives about 1/1.19Mhz 
  24. resolution (minus overhead).
  25.  
  26. Tom Hill
  27.  
  28.  
  29.  
  30.