home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / pascal / 4556 < prev    next >
Encoding:
Internet Message Format  |  1992-07-25  |  3.0 KB

  1. Xref: sparky comp.lang.pascal:4556 comp.sys.ibm.pc.programmer:284 alt.msdos.programmer:2069
  2. Path: sparky!uunet!ogicse!orstcs!leela!jacobs.CS.ORST.EDU!woodc
  3. From: woodc@jacobs.CS.ORST.EDU (Major Havok)
  4. Newsgroups: comp.lang.pascal,comp.sys.ibm.pc.programmer,alt.msdos.programmer
  5. Subject: Hi-rez timer/Graphics routines.
  6. Message-ID: <1992Jul26.014336.9808@leela.cs.orst.edu>
  7. Date: 26 Jul 92 01:43:36 GMT
  8. Article-I.D.: leela.1992Jul26.014336.9808
  9. Sender: usenet@leela.cs.orst.edu (Usenet programs owner)
  10. Organization: Computer Science Outreach Services - Oregon State University
  11. Lines: 45
  12. Nntp-Posting-Host: jacobs.cs.orst.edu
  13.  
  14.  
  15.   First of all, I would like to say that I have created a Turbo Pascal unit
  16. (with source code included) for giving your Turbo Pascal program access to
  17. a timer with greater resolution than 55 milliseconds. The file is called
  18. "qwktimer.zip" and is available on garbo.uwasa.fi in the directory
  19. /pc/turbopas. This unit will give you access to a system timer with 
  20. microsecond precision. The default system timer experiences a clock tick
  21. every 55 millesonds (or 18.2 times per second). With QwkTimer, in theory
  22. you can increase the system timer to a resolution of about 900 nanoseconds
  23. without altering the time of day contained in your system clock. QwkTimer
  24. is freeware. You may distribute it as much as you like, but please do not
  25. distribute it in modified form. Feel free to modify the source code in any
  26. way you like for your own private use. Possible applications for QwkTimer
  27. are:
  28.  
  29.   - Measuring the elapsed time between events with microsecond precision.
  30.  
  31.   - Forcing a delay between events with microsecond precision.
  32.  
  33.   - Setting up a high speed output buffer. For instance, you may set up
  34.     an output buffer for a 9600 baud modem so that your program doesn't
  35.     have to constantly monitor the modem (in this case a timing rate of
  36.     greater than 960 clock ticks per second should be used).
  37.  
  38.   There are proably many more applications, but these are just a few that I
  39. can think of at this moment. If you have any comments or questions, please
  40. email me at woodc@jacobs.cs.orst.edu. 
  41.  
  42.  
  43.  
  44.   Now, for the second part of this posting. Would anyone out there have
  45. any FAST graphics routines for drawing a line between two points and for
  46. plotting a pixel fast? It should be written in assembly language and should
  47. be easily incorperated into a Turbo Pascal program (either linked to the
  48. pascal program, or included in the source code itself using the ASM 
  49. feature of Turbo Pascal 6.0). This will be for use on a super VGA card,
  50. but all I really need is a method for calculating the slope needed for
  51. drawing a line very fast since I already know how to perform bank switching
  52. on my SVGA card. Any help would be appreciated.
  53.  
  54. -- 
  55. +---------------------------+----------------------------------------------+
  56. | Chris Wood                |  "If you can't convince them, confuse them." |
  57. | woodc@jacobs.cs.orst.edu  |                                   -unknown   |
  58. +---------------------------+----------------------------------------------+
  59.