Process::Tms

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

Class Method Summary

Instance Method Summary

Class Method Detail

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

Instance Method Detail

def cloneSource

def cstime : Float64

def cutime : Float64

def stime : Float64

def utime : Float64

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

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部