Mail Archives: djgpp/2001/11/27/06:32:18
On Tue, 27 Nov 2001, Alex Vinokur wrote:
> It seems that it is preferable to use uclock()
> instead of 'struct rusage' to get user time used by process
> Resolution of uclock() is higher than 'struct rusage'.
It depends on whether you value resolution more than stability and
reliability. `clock' (used internally by `getrusage') is more reliable
than `uclock', and can be used during much longer intervals (whereas
`uclock' wraps around). Since `getrusage' is not something many people
need to time very small code fragments, its low resolution is IMHO less
important.
- Raw text -