cvs.gedasymbols.org/archives/browse.cgi | search |
From: | Groman <groman AT tfz DOT net> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: usleep/delay/sleep ? |
Date: | Sat, 14 Aug 1999 22:26:37 -0700 |
Organization: | Posted via RemarQ, http://www.remarQ.com - The Internet's Discussion Network |
Lines: | 24 |
Message-ID: | <37B64F8D.EED7B6CF@tfz.net> |
References: | <934647567 DOT 25013 DOT 0 DOT nnrp-11 DOT c2de6b60 AT news DOT demon DOT co DOT uk> |
Mime-Version: | 1.0 |
X-Trace: | 934694770 WQ39EUJ1V392DB781 usenet44.supernews.com |
X-Complaints-To: | newsabuse AT remarQ DOT com |
X-Mailer: | Mozilla 4.04 [en] (WinNT; U) |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
to achieve best results, program the timers yourself in assembly Simon Redwood wrote: > I am new to using djgpp under dos, being a unix programmer. I am having > trouble with delays. > > Can I rely on usleep to give me accurate timings. > > Giving usleep a value of 10000-12500 produces the same delay, whereas 13000 > gives the same as 20000, where I am going wrong. > > I would like to put a delay into a loop of about 1/100 sec. how is the best > way to acheive this > > I am also looking to work with microprocessors where I will need accurate > timings of nanoseconds, how can this be best acheived. > > TIA > > Simon
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |