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