c++ - The C `clock()` function just returns a zero -
C clock ()
function just gives me a zero. I tried to use different types, with no improvement ... it is to measure the time with a good way good precision
3 seconds Sleeping ... start = 0k00000000000000000000 end = .00000000000000000000 delta = 0.00000000000000000000 cpu_time_used = 0.000000000000000 CLOCKS_PER_SEC = 1000000
platform: Intel 32-bit, RedHat Linux, gcc 3.4.6
< code> clock () CPU report using the sleep ()
does not use any CPU time, your results may be perfect, just what do you want .
Comments
Post a Comment