home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / bit / listserv / win3l / 13020 < prev    next >
Encoding:
Text File  |  1993-01-28  |  1.1 KB  |  25 lines

  1. Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
  2. Path: sparky!uunet!spool.mu.edu!howland.reston.ans.net!paladin.american.edu!auvm!INFERENCE.COM!GLOSTER
  3. Message-ID: <9301281827.AA19646@quaestor>
  4. Newsgroups: bit.listserv.win3-l
  5. Date:         Thu, 28 Jan 1993 10:27:06 PST
  6. Sender:       Microsoft Windows Version 3 Forum <WIN3-L@UICVM.BITNET>
  7. From:         "Vance M. Gloster" <gloster@INFERENCE.COM>
  8. Subject:      Timers in Windows
  9. In-Reply-To:  klatsy@SCHKOL.SCH.BME.HU's message of Thu,
  10.               28 Jan 1993 18:59:20 EST
  11.               <9301281802.AA18981@fourier.inference.com>
  12. Lines: 11
  13.  
  14.     I met with an interesting problem. I have to create a timer to wake one of
  15.   functions up in every 1 ms. But. It seems, that windows can launch a timerproc
  16.   only in every 50-60 milliseconds. For instance when I asked for a 2 ms timer,
  17.   than it calls the callback function after 50, 100, 150, 200, ... milliseconds.
  18.  
  19. Use the multimedia timer.  It has a resolution (on most machines) of 1
  20. ms.  It is a hardware interrupt, not a message.  The standard timer
  21. will skip events if the system gets busy.
  22.  
  23. -Vance Gloster
  24.  gloster@inference.com
  25.