種類
- インスタンスメソッド (88)
- 定数 (22)
- モジュール関数 (22)
- 特異メソッド (11)
クラス
-
Benchmark
:: Tms (66) -
Process
:: Tms (44)
検索結果
先頭5件
-
Benchmark
:: Tms # stime -> Float (18101.0) -
System CPU time
System CPU time -
Process
:: Tms # stime -> Float (18101.0) -
システム CPU 時間を返します。
システム CPU 時間を返します。 -
Process
:: Tms # stime=(n) (6101.0) -
システム CPU 時間をセットします。
システム CPU 時間をセットします。 -
Benchmark
:: Tms # cstime -> Float (6100.0) -
子プロセスの System CPU time
子プロセスの System CPU time -
Process
:: Tms # cstime -> Float (6100.0) -
終了した子プロセスのシステム CPU 時間の合計(秒)を返します。
終了した子プロセスのシステム CPU 時間の合計(秒)を返します。
Windows 上では常に 0 を返します。 -
Process
:: Tms # cstime=(n) (6100.0) -
終了した子プロセスのシステム CPU 時間の合計(秒)をセットします。
終了した子プロセスのシステム CPU 時間の合計(秒)をセットします。 -
Benchmark
:: Tms . new(utime = 0 . 0 , stime = 0 . 0 , cutime = 0 . 0 , cstime = 0 . 0 , real = 0 . 0 , label = nil) -> Benchmark :: Tms (207.0) -
新しい Benchmark::Tms オブジェクトを生成して返します。
...新しい Benchmark::Tms オブジェクトを生成して返します。
@param utime User CPU time
@param stime System CPU time
@param cutime 子プロセスの User CPU time
@param cstime 子プロセスの System CPU time
@param real 実経過時間
@param label ラベル... -
Benchmark
:: Tms # total -> Float (16.0) -
合計時間。(utime + stime + cutime + cstime)
...合計時間。(utime + stime + cutime + cstime)... -
Process
. # clock _ gettime(clock _ id , unit=:float _ second) -> Float | Integer (12.0) -
POSIX の clock_gettime() 関数の時間を返します。
...) とシステム時間 (ru_stime) を足した結果を返します。
精度は1マイクロ秒です。
: :TIMES_BASED_CLOCK_PROCESS_CPUTIME_ID
POSIX で定義されている times() を使います。
ユーザー時間 (tms_utime) と システム時間 (tms_stime) を足した結果を返......します。
tms_cutime と tms_cstime は子プロセスの時間を含みません。
精度はクロック数 (clock tick) です。
「getconf CLK_TCK」コマンドで1秒あたりのクロック数を表示できます。
(古いシステムでは、1秒あたりのクロック数は HZ... -
Benchmark
. # benchmark(caption = "" , label _ width = nil , fmtstr = nil , *labels) {|rep| . . . } -> [Benchmark :: Tms] (6.0) -
Benchmark::Report オブジェクトを生成し、それを引数として与えられたブロックを実行します。
...れます(Mnemonic: y of "s*y*stem")。Benchmark::Tms#stime
: %U
子プロセスの user CPU time で置き換えられます。Benchmark::Tms#cutime
: %Y
子プロセスの system CPU time で置き換えられます。Benchmark::Tms#cstime
: %t
total CPU time で置き換えられます。Be...