[uClibc] clock() for long-running process
Atsushi Nemoto
anemo at mba.ocn.ne.jp
Mon May 10 13:41:35 UTC 2004
>>>>> On Sun, 9 May 2004 15:41:23 +0200, "Joakim Tjernlund" <Joakim.Tjernlund at lumentis.se> said:
Tjernlund> hmm, times() returns a clock_t type which is signed. How
Tjernlund> should one use times() to calc. elapsed time? Just type
Tjernlund> cast its return value to an unsigned long?
I think just taking difference of return values of two times() call
will be enough. (at least in short range)
---
Atsushi Nemoto
More information about the uClibc
mailing list