Re: times(2) no sys_call ??

David Mosberger-Tang (davidm@azstarnet.com)
Thu, 9 May 1996 21:42:36 -0700


>>>>> On Thu, 9 May 1996 19:08:34 +0200 (MET DST), koenig@tat.physik.uni-tuebingen.de (Harald Koenig) said:

Harald> for DEC Unix times() again is implemeted using
Harald> getrusage/gettimeofday (thanks to Linux strace ;-) but here
Harald> CLK_TCK is 60 :-(

This seems the "standard" value. It's the same value that glibc uses.
I don't think there is anything in POSIX requires CLK_TCK to equal HZ.
And since OSF/1 uses 60 as well, it's probably better to stick with
that value.

IMHO: avoid times() if you can...

--david