format

format(format = nil, *args)
Instance Public methods

Returns the contents of this Tms object as a formatted string, according to a format string like that passed to Kernel#format. In addition, format accepts the following extensions:

%u

Replaced by the user CPU time, as reported by #utime.

%y

Replaced by the system CPU time, as reported by stime (Mnemonic: y of âs*y*stemâ)

%U

Replaced by the children's user CPU time, as reported by #cutime

%Y

Replaced by the children's system CPU time, as reported by #cstime

%t

Replaced by the total CPU time, as reported by #total

%r

Replaced by the elapsed real time, as reported by #real

%n

Replaced by the label string, as reported by #label (Mnemonic: n of â*n*ameâ)

If format is not given, FORMAT is used as default value, detailing the user, system and real elapsed time.

doc_ruby_on_rails
2015-03-31 02:47:26
Comments
Leave a Comment

Please login to continue.