W3cubDocs

/Crystal 0.31

class Benchmark::BM::Tms

Overview

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

Defined in:

benchmark/bm.cr

Instance Method Summary

Instance Method Detail

def cstime : Float64Source

System CPU time of children

def cutime : Float64Source

User CPU time of children

def label : StringSource

The label associated with this measure

def real : Float64Source

Elapsed real time

def stime : Float64Source

System CPU time

def to_s(io : IO) : NilSource

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

def totalSource

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

def utime : Float64Source

User CPU time

© 2012–2019 Manas Technology Solutions.
Licensed under the Apache License, Version 2.0.
https://crystal-lang.org/api/0.31.1/Benchmark/BM/Tms.html