home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!darwin.sura.net!jvnc.net!netnews.upenn.edu!netnews.cc.lehigh.edu!ns1.cc.lehigh.edu!krw1
- From: krw1@ns1.cc.lehigh.edu (Kevin Weiner)
- Newsgroups: comp.lang.pascal
- Subject: Re: Windows Programming and Timer Resolution question.
- Message-ID: <1992Dec22.141509.32163@ns1.cc.lehigh.edu>
- Date: 22 Dec 92 14:15:09 GMT
- Organization: Lehigh University
- Lines: 17
-
- In article <37999@uflorida.cis.ufl.edu>, fryman@webb.psych.ufl.edu
- (J. B. Fryman) writes:
-
- > The problem is this: I need better than 1/100 second resolution under
- >Windows. Any suggestions? Has anyone gotten around this accurately? Or am I
-
- Use the TimeGetTime function in Win 3.1 (or 3.0 MME) - it returns an accurate
- millisecond time. For timer interrupts, use TimeSetEvent. It is possible to
- get to the real timer tick count via Virtual Timer Device (VTD) API calls,
- but the millisecond functions are much easier and cleaner if that resolution
- will suffice. The timer functions are declared in mmsystem.pas, available
- in a Borland-released 3.1 update (on CompuServe and probably elsewhere) for
- TPW, or standard in BP7.
- --
-
- ----------------------------------------------------------------------------
- Kevin Weiner Lehigh University Computing Center (215) 758-3991
-