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
[EMAIL PROTECTED]          |  www.FreeBSD.org
_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to