Date: Mon, 3 Oct 1994 13:15:52 +0500 From: hvb AT netrix DOT com To: DJGPP AT sun DOT soe DOT clarkson DOT edu, victor AT euler DOT berkeley DOT edu Subject: Re: accuracy of clock() > It seems to me that the accuracy we can get from the time() > function is only 1/18.2 second (about 55 mili-seconds), even > though CLOCKS_PER_SEC is defined as 1000000 in time.h. > > I wonder if anyone knows that there is any way to get a more > accurate time? > We had to reprogram the timer chip (8253) to have a faster interrupt rate. You still need to call the original interrupt to have the DOS clock up to date. On some hardware platform, this is not achievable as the disk drive actually uses the chip timer output for some of its own timing!!!