Just a sanity check before I sumbit a buig report
dwhite at gumbysoft.com
Wed Mar 9 23:35:33 PST 2005
On Tue, 8 Mar 2005, Pete French wrote:
> The man page for getrusage says that the frequency of the statistics
> clock is given by sysconf(_SC_CLK_TCK).
> The source code to /usr/bin/time uses a function 'getstathz' to get
> the frequency of the statistics clock which is does using sysctl
> and KERN_CLOCKRATE
'sysctl kern.clockrate' will return this information if you don't want to
write a program to do it for you :)
> On my system the first returns 100Hz and the second 128Hz!!!
What are the two machines? stathz is 128 on i386, 100 on sparc64, and 130
on amd64. Or thats the defaults at least.
Doug White | FreeBSD: The Power to Serve
dwhite at gumbysoft.com | www.FreeBSD.org
More information about the freebsd-stable