www.delorie.com/archives/browse.cgi | search |
From: | Young Fan <youngcfan AT hotmail DOT com> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Micro-second time function... |
Date: | Tue, 27 Jul 1999 11:56:04 -0400 |
Organization: | Nortel |
Lines: | 22 |
Message-ID: | <379DD694.34A21A51@hotmail.com> |
References: | <7nkk05$urd$1 AT news DOT interpoint DOT ch> |
NNTP-Posting-Host: | pwdld0av.ca.nortel.com |
Mime-Version: | 1.0 |
X-Mailer: | Mozilla 4.03 [en] (Win95; I) |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id MAB11461 |
Reply-To: | djgpp AT delorie DOT com |
Hi, The function uclock() lets you time intervals as short as 840 nanoseconds. It counts the number of "uclocks" elapsed, and there are 1193180 uclocks per second. The function is found in time.h. Good luck! Young Fan Pierre-André Mudry wrote: > > Does anyone has a function that waits only 1 us ?? I tried to do it myself > but I couldn't understand the way interrupts were processed in protected > mode... :( > > Best regards, > > Pierre-Andre Mudry
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |