www.delorie.com/archives/browse.cgi | search |
From: | samir AT mindspring DOT com (Samir Barjoud) |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: timing in u sec range |
Date: | Tue, 5 Jan 1999 23:06:13 -0500 |
Organization: | MindSpring Enterprises |
Lines: | 12 |
Message-ID: | <MPG.10fcab3b31b1166f989697@news.miami.mindspring.com> |
References: | <Pine DOT SUN DOT 3 DOT 91 DOT 990103103639 DOT 12860B-100000 AT is> <36928BD8 DOT 8FED643D AT cyberoptics DOT com> |
NNTP-Posting-Host: | d1.56.b9.b1 |
X-Server-Date: | 6 Jan 1999 04:07:14 GMT |
X-Newsreader: | Anawave Gravity v2.00 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
I've written code that lets you get millisecond accurate timing under DOS and win9x. If RDTSC is available, it will use it, otherwise it uses the PIT (increases the PIT frequency). The frequency changing works under win9x as well. It's part of a work in progress, but you can grab it from here: ftp://ftp.mindspring.com/users/samir/SUPTIME.ZIP -- Samir Barjoud samir AT mindspring DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |