| delorie.com/archives/browse.cgi | search |
| Date: | Wed, 30 Dec 1998 13:15:02 +0200 (IST) |
| From: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
| X-Sender: | eliz AT is |
| To: | "David M. Cook" <davecook AT home DOT com> |
| cc: | djgpp AT delorie DOT com |
| Subject: | Re: timing in u sec range |
| In-Reply-To: | <slrn78jru8.q3.davecook@sputnik.escnd1.sdca.home.com> |
| Message-ID: | <Pine.SUN.3.91.981230131318.1157B-100000@is> |
| MIME-Version: | 1.0 |
| Reply-To: | djgpp AT delorie DOT com |
On Wed, 30 Dec 1998, David M. Cook wrote: > >is it possible to do timing in hundreds of micro seconds. I need to do > >something, wait 300 u secs then do something else.I'm using a 133 mhz > >pentium. > > You can use usleep() in unistd.h. No, `usleep' won't do the job, since it cannot sleep less than 54 milliseconds (it uses the PC timer tick to get the time).
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |