This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

clock() function problem.


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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]