home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / pascal / 7608 < prev    next >
Encoding:
Internet Message Format  |  1992-12-22  |  2.5 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!tulane!uflorida!webb.psych.ufl.edu!fryman
  2. From: fryman@webb.psych.ufl.edu (J. B. Fryman)
  3. Newsgroups: comp.lang.pascal
  4. Subject: Windows Programming and Timer Resolution question.
  5. Summary: Windows prohibits timer resolution beyond 1/100 second?
  6. Keywords: windows timer question time
  7. Message-ID: <37999@uflorida.cis.ufl.edu>
  8. Date: 21 Dec 92 21:37:45 GMT
  9. Sender: news@uflorida.cis.ufl.edu
  10. Organization: Univ. of Florida, Psychology Dept.
  11. Lines: 41
  12. Nntp-Posting-Host: webb.psych.ufl.edu
  13.  
  14. DISCLAIMER: My apologies if this wound up on the net 3 (!) times. I had to
  15.     go figure out what was wrong with the system news service before it
  16.     would accept a post.
  17.  
  18. Greetings,
  19.  
  20.     I am in the process of writing various experimental software programs
  21. for the University of Florida and have run into an interesting situation. I'm
  22. writing the program to run under Windows, and am using BP7, although I have
  23. access to all previous versions of TP and TPW.
  24.  
  25.     The problem is this: I need better than 1/100 second resolution under
  26. Windows. Any suggestions? Has anyone gotten around this accurately? Or am I
  27. just stupid?
  28.  
  29.     Some background: Windows (for those of you who would just tell me to
  30. displace the timer interrupt code) is a time-slice "multitasking" (snicker)
  31. system. It takes control of the timer, reprograms it for 1/100 second
  32. resolution, and doesn't act very kindly when you try to change that. At least,
  33. that's as far as I've tried doing this.
  34.     I have written routines that work fine under DOS only environments to
  35. about 10 nanosecond resolution. Even running these under a Dos-Shell will
  36. cause windows serious distress, and running it in a "window" is an absolute
  37. no-no.
  38.     The only (which are indirect) references I have to timer control under
  39. Windows tell you how to perform 1/100 second timers. Windows itself will let
  40. you set the time-slice in "milliseconds" in the SYSTEM.INI file. Other than
  41. that, I have no references. Also, I don't have any of those (but wish I did)
  42. super-thick Windows Tech Ref manuals of any nature -- just the Docs that came
  43. with BP7 and TPW, plus some misc. old PC systems programming manuals.
  44.  
  45.         Thanks for any help,
  46.                     Josh
  47.  
  48. PS: For those who can't think of applications that need micro second resolution
  49.     for beyond a few minutes, I need that resolution for _hours_. Ick.
  50.  
  51. --------------------------------------------------------------------------------
  52. J. B. Fryman                                 fryman@psych.ufl.edu
  53. University of Florida                         fryman@ufl.edu
  54. Department of Psychology                
  55.