class Benchmark::BM::Tms


A data object, representing the times associated with a benchmark measurement.

Defined in:


Instance Method Summary

Instance methods inherited from class Reference

! !, ==(other)
==(other : self)
, hash hash, inspect(io : IO) : Nil inspect, nil? nil?, object_id object_id, same?(other : Nil)
same?(other : Reference)
, to_s(io : IO) : Nil to_s

Instance methods inherited from class Object

! !, !=(other) !=, !~(other) !~, ==(other) ==, ===(other) ===, =~(other) =~, class class, clone clone, crystal_type_id crystal_type_id, dup dup, hash hash, inspect
inspect(io : IO)
, itself itself, not_nil! not_nil!, tap(&block) tap, to_json to_json, to_pretty_json(io : IO)
, to_s
to_s(io : IO)
, to_yaml(io : IO)
, try(&block) try

Class methods inherited from class Object

==(other : Class) ==, ===(other) ===, cast(other) : self cast, from_json(string_or_io) from_json, from_yaml(string : String) from_yaml, hash hash, inspect(io) inspect, name : String name, to_s(io) to_s

Instance Method Detail

def cstime #

System CPU time of children

[View source]
def cutime #

User CPU time of children

[View source]
def label #

The label associated with this measure

[View source]
def real #

Elapsed real time

[View source]
def stime #

System CPU time

[View source]
def to_s(io : IO) #

Prints utime, stime, total and real to the given IO.

[View source]
def total #

Total time, that is utime + stime + cutime + cstime

[View source]
def utime #

User CPU time

[View source]