Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Rob Kirkbride <rk-comp@rk-comp.demon.co.uk>
Subject: Re: Real time clock (rpcc)
Date: 1997/06/27	[thread overview]
Message-ID: <k+Bt5RALSBtzEwL4@RK-COMP.DEMON.CO.UK> (raw)
In-Reply-To: 5ose30$iu5@usenet.pa.dec.com


>If you can tolerate a few microseconds of overhead, and if you are
>running Digital UNIX V4.0 or later, you can configure the kernel
>to provide microsecond resolution from the gettimeofday() system
>call.
>
>The kernel does this by using the RPCC instruction to interpolate
>between the 1024 Hz clock interrupts.  As you observe, this can
>be tricky on a multiprocessor.  However, my understanding is that
>the kernel code solves this problem, using a fairly subtle algorithm
>to make sure that the interpolation is done correctly.  It might
>be very hard (or even impossible) to do this efficiently inside
>user-level code.
>
>For more details, see
>       http://www.supelec.fr/decus/faq/faq-Digital-UNIX.html#P9
>
>-Jeff

Thanks for your help, I have decided to use timers instead. I feel these
should be more accurate than me trying to work out how late I am or
whatever. I suspect there implementation is better than I could manage
as well. I do have a question regarding these however. See my new thread
on signals.

Rob

-- 
Rob Kirkbride
rob@rk-comp.demon.co.uk



      reply	other threads:[~1997-06-27  4:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-06-25  4:00 Real time clock (rpcc) Rob Kirkbride
1997-06-26  4:00 ` Jeffrey Mogul
1997-06-27  4:00   ` Rob Kirkbride [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox