www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/19/06:42:20

From: XXguille AT XXiies DOT XXes (Guillermo Rodriguez Garcia)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: high resolution timer
Date: Mon, 19 Apr 1999 10:48:20 GMT
Organization: Telefonica Transmision de Datos
Lines: 24
Message-ID: <371afe46.1748891@noticias.iies.es>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 990419101113 DOT 15835H-100000 AT is>
NNTP-Posting-Host: iies251.iies.es
Mime-Version: 1.0
X-Newsreader: Forte Agent 1.5/32.451
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

El día Mon, 19 Apr 1999 10:11:45 +0300 (IDT), Eli Zaretskii
<eliz AT is DOT elta DOT co DOT il> escribió:

>> Can anyone tell me how accurate is gettimeofday()?
>
>55ms, of course: it gets the time from the DOS function 2Ch (as is
>clear from looking at the sources ;-).

Ops. Sorry..   m-)

>To solve your problem, either reprogram timer 2 (instead of the system
>timer 0, like `uclock' does) and use it in the same way as `uclock';
>or program the CMOS clock to generate interrupt 70h every 976.6
>microseconds and install a handler that counts these interrupts.

976 microseconds is not enough, so I guess I will go for timer 2.
Thanks!

Regards,
GUILLE

----
Guillermo Rodriguez Garcia
XXguille AT XXiies DOT XXes (ya sabes :-)

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019