CLK_TCK vs. CLOCKS_PER_SEC

uunet!mcgrath at paris.Berkeley.EDU uunet!mcgrath at paris.Berkeley.EDU
Mon Mar 20 04:15:51 AEST 1989


Newsgroups: comp.std.c,comp.std.unix
Sender: uunet!usenet at agate.Berkeley.EDU@
From: uunet!mcgrath at paris.Berkeley.EDU@ (Roland McGrath)


Can anyone tell me why the ANSI C committee changed CLK_TCK to
CLOCKS_PER_SEC, and how this is supposed to be different than the CLK_TCK
that 1003.1 assumes the C standard defines?

They both seem to mean the number of `clock_t' increments ("clock ticks") in
one second, but ANSI has for some reason separated the two uses (for `clock'
and for POSIX `times').
--
	Roland McGrath
	Free Software Foundation, Inc.
roland at wheaties.ai.mit.edu, mit-eddie!wheaties.ai.mit.edu!roland

Volume-Number: Volume 16, Number 19



More information about the Comp.std.unix mailing list