Skip to content

struct Process::Tms
inherits Struct

A struct representing the CPU current times of the process, in fractions of seconds.

  • utime: CPU time a process spent in userland.
  • stime: CPU time a process spent in the kernel.
  • cutime: CPU time a processes terminated children (and their terminated children) spent in the userland.
  • cstime: CPU time a processes terminated children (and their terminated children) spent in the kernel.

Class methods

.new(utime : Float64, stime : Float64, cutime : Float64, cstime : Float64)

View source

Methods

#clone

View source

#copy_with(utime _utime = @utime, stime _stime = @stime, cutime _cutime = @cutime, cstime _cstime = @cstime)

View source

#cstime : Float64

#cutime : Float64

#stime : Float64

#utime : Float64