chandanlinster <ch************@gmail.comwrote:
what do the values of "clocks_ticks = sysconf(_SC_CLK_TCK);" and
"CLOCK_PER_SEC" represent?
"CLOCKS_PER_SEC" (I guess you meant that) is the time the value
returned by the function clock() must be divided by to give a
time in seconds. What the non-standard-C (but POSIX) function
sysconf() returns for "_SC_CLK_TCK" (also not a standard-C but
POSIX defined value) is the time resolution the values returned
by the times() function are in (you may already have guessed
that this is also not a standard-C but POSIX function;-).They
typicaly are the not the same. And neither of them is meant to
be confused with the clock rate of the processor(s).
Regards, Jens
--
\ Jens Thoms Toerring ___
jt@toerring.de
\__________________________
http://toerring.de