This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 12/12] Revise the documentation of ‘simple calendar time’.
On Tue, Aug 20, 2019 at 3:38 PM Joseph Myers <joseph@codesourcery.com> wrote:
> On Tue, 20 Aug 2019, Paul Eggert wrote:
> > Zack Weinberg wrote:
> > > +@code{clock_t} is used to measure processor and CPU time. Its values
> > > +are counts of @dfn{clock ticks} since some arbitrary event. The
> > > +number of clock ticks per second is system-specific.
> >
> > Also mention here that ISO C and POSIX both say that clock_t may be an an
> > integer or a floating-point type.
>
> I think the key fact about clock_t is that it (and so the functions using
> it) should be avoided because of limited range on many systems and
> getrusage should be used instead. That's mentioned in the manual, but
> perhaps not given enough emphasis.
I don't want to revise the processor-and-CPU-time sections of
time.texi in this patch series, and I think that anything more than I
wrote but less than a complete revision of those sections would only
make things more confusing than they already are.
zw