method

times

v1_8_7_330 - Show latest stable - Class: Process
times()
public

Returns a Tms structure (see Struct::Tms on page 388) that contains user and system CPU times for this process.

t = Process.times
[ t.utime, t.stime ]   #=> [0.0, 0.02]