struct Process::Tms

Overview

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.

Defined in:

process.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(utime : Float64, stime : Float64, cutime : Float64, cstime : Float64)Source

Instance Method Detail

def cloneSource

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

def cstime : Float64

def cutime : Float64

def stime : Float64

def utime : Float64

© 2012–2021 Manas Technology Solutions.
Licensed under the Apache License, Version 2.0.
https://crystal-lang.org/api/1.2.1/Process/Tms.html