🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.unix
Article #1277

CLK_TCK vs. CLOCKS_PER_SEC

#1277
From: uunetmcgrath Roland McGrath
Date: Sun, 19 Mar 1989 18:15
18 lines
1120 bytes
Newsgroups: comp.std.c,comp.std.unix
Sender: uunet!usenet@agate.Berkeley.EDU@
From: uunet!mcgrath@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@wheaties.ai.mit.edu, mit-eddie!wheaties.ai.mit.edu!roland

Volume-Number: Volume 16, Number 19
Technical Details
Message-ID: <320@longway.TIC.COM>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!longway!std-unix

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!longway!std-unix
From: uunet!mcgrath@paris.Berkeley.EDU@ (Roland McGrath)
Newsgroups: comp.std.unix
Subject: CLK_TCK vs. CLOCKS_PER_SEC
Message-ID: <320@longway.TIC.COM>
Date: 19 Mar 89 18:15:51 GMT
Sender: std-unix@longway.TIC.COM
Reply-To: uunet!mcgrath@paris.Berkeley.EDU@ (Roland McGrath)
Organization: University of California, Berkeley
Lines: 18
Approved: jsq@longway.tic.com (Moderator, John S. Quarterman)