Mail Archives: djgpp/1999/04/18/17:35:31
From: | XXguille AT XXiies DOT XXes (Guillermo Rodriguez Garcia)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | high resolution timer
|
Date: | Sun, 18 Apr 1999 22:03:17 GMT
|
Organization: | Telefonica Transmision de Datos
|
Lines: | 16
|
Message-ID: | <371a4ef6.1846448@noticias.iies.es>
|
NNTP-Posting-Host: | iies140.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
|
Hello!
I have an incoming signal at one COM port and I need to measure the
time between two events with an accuracy of about 10 us (that is, an
error <10 us is acceptable).
I would like to use gettimeofday(), because uclock() reprograms the
PIT and I need the timer myself for other things. Can anyone tell me
how accurate is gettimeofday()? It has a field for microseconds, but I
guess its resolution will be a bit lower...
Regards,
GUILLE
----
Guillermo Rodriguez Garcia
XXguille AT XXiies DOT XXes (ya sabes :-)
- Raw text -