home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!tulane!uflorida!webb.psych.ufl.edu!fryman
- From: fryman@webb.psych.ufl.edu (J. B. Fryman)
- Newsgroups: comp.lang.pascal
- Subject: Windows Programming and Timer Resolution question.
- Summary: Windows prohibits timer resolution beyond 1/100 second?
- Keywords: windows timer question time
- Message-ID: <37999@uflorida.cis.ufl.edu>
- Date: 21 Dec 92 21:37:45 GMT
- Sender: news@uflorida.cis.ufl.edu
- Organization: Univ. of Florida, Psychology Dept.
- Lines: 41
- Nntp-Posting-Host: webb.psych.ufl.edu
-
- DISCLAIMER: My apologies if this wound up on the net 3 (!) times. I had to
- go figure out what was wrong with the system news service before it
- would accept a post.
-
- Greetings,
-
- I am in the process of writing various experimental software programs
- for the University of Florida and have run into an interesting situation. I'm
- writing the program to run under Windows, and am using BP7, although I have
- access to all previous versions of TP and TPW.
-
- 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
- just stupid?
-
- Some background: Windows (for those of you who would just tell me to
- displace the timer interrupt code) is a time-slice "multitasking" (snicker)
- system. It takes control of the timer, reprograms it for 1/100 second
- resolution, and doesn't act very kindly when you try to change that. At least,
- that's as far as I've tried doing this.
- I have written routines that work fine under DOS only environments to
- about 10 nanosecond resolution. Even running these under a Dos-Shell will
- cause windows serious distress, and running it in a "window" is an absolute
- no-no.
- The only (which are indirect) references I have to timer control under
- Windows tell you how to perform 1/100 second timers. Windows itself will let
- you set the time-slice in "milliseconds" in the SYSTEM.INI file. Other than
- that, I have no references. Also, I don't have any of those (but wish I did)
- super-thick Windows Tech Ref manuals of any nature -- just the Docs that came
- with BP7 and TPW, plus some misc. old PC systems programming manuals.
-
- Thanks for any help,
- Josh
-
- PS: For those who can't think of applications that need micro second resolution
- for beyond a few minutes, I need that resolution for _hours_. Ick.
-
- --------------------------------------------------------------------------------
- J. B. Fryman fryman@psych.ufl.edu
- University of Florida fryman@ufl.edu
- Department of Psychology
-