update page now

Voting

: nine plus zero?
(Example: nine)

The Note You're Voting On

Domas Mituzas
18 years ago
getrusage() reports kernel counters that are updated only once application loses context and a switch to kernel space happens. For example on modern Linux server kernels that would mean that getrusage() calls would return information rounded at 10ms, desktop kernels - at 1ms.

getrusage() isn't usable for micro-measurements at all - and getmicrotime(true) might be much more valuable resource.

<< Back to user notes page

To Top