in reply to Timer implementation

real = sum( for all processes, p ){ user(p) + sys(p) };

Modern computer systems are "time share" systems so the one process you timed isn't the only process getting CPU time. In fact, in the "for all processes", you need to include "the idle 'process'".

- tye        

Replies are listed 'Best First'.
Re^2: Timer implementation (time sharing)
by betterworld (Curate) on Sep 16, 2008 at 12:41 UTC

    If you sum over all processes, you'll have to divide the result by the number of CPUs :)

Re^2: Timer implementation (time sharing)
by bash (Scribe) on Sep 16, 2008 at 02:44 UTC
    Oh... i think that i understand now. You want to say, that if my application is sleeping on some kind of I/O system calls then Real Time will be Sys+Real+Sleep_Time?