C9x <time.h> and clock precision
Clive D.W. Feather
clive at on-the-train.demon.co.uk
Thu Oct 8 22:54:52 UTC 1998
In message <199810072258.PAA01063 at shade.twinsun.com>, Paul Eggert
<eggert at twinsun.com> writes
> Don't forget that the old clock_t clock(void); is still available
>
>It's available, but it wouldn't work well, for three reasons.
>
>First, `clock' reports the sum of the CPU times of the process and its
>children; this is not the same as TIME_MONOTONIC.
clock should report the CPU time used by the process, *not* any other
processes that happen to be related in some way.
--
Clive D.W. Feather | Regulation Officer, LINX | Work: <clive at linx.org>
Tel: +44 1733 705000 | (on secondment from | Home: <cdwf at i.am>
Fax: +44 1733 353929 | Demon Internet) | <http://i.am/davros>
Written on my laptop; please observe the Reply-To address
More information about the tz
mailing list