clock() function problem.

DOBLEJ1 DOBLEJ@teleline.es
Wed Aug 14 09:21:00 GMT 2002


Hi:

    The clock() function call does what we want, but with one serious
side effect: It rolls over after 2147 seconds. This is less
than the CPU times we expect to measure. It also does not roll over to
zero, but starts _descending_ after it rolls
over. Does anyone know how to reset clock() so that it starts from zero
again, or better yet, a simple, clean way of measuring
large amounts of process CPU time?

Thanks in advanced.




More information about the Gcc mailing list