Ethereal-dev: Re: [ethereal-dev] High resolution timers

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Christian Brunner <chb@xxxxxx>
Date: Wed, 6 Jan 1999 13:37:26 +0100 (CET)
On Tue, 5 Jan 1999, Lyle Bickley wrote:

> You might want to look at the high resolution timer used by the SMP
> folks (See time.c in arch/i386/kernel).  To use it you have to configure
> Linux under "Character Devices" to include "Enhanced Real Time Clock
> Support".  The enhanced timer supports microsecond or better ticks.

In linux/Documentation/rtc.txt I read:

"However it can also be used to generate signals from a slow 2Hz to a
relatively fast 8192Hz, in increments of powers of two."

8192Hz would be a resolution of 122 microseconds, which is better, but not
sufficent and working with /dev/rtc is really system dependend (please
prove me wrong...). In this case I'd even prefer using the POSIX.4 patches
for Linux (http://hegel.ittc.ukans.edu/projects/posix/time.html), since
timer_create() is available on some other systems, too. But having to
patch the kernel, before using ethereal isn't really an option. 

Christian