def format(format = nil, *args)
      str = (format || FORMAT).dup
      str.gsub!(/(%[-+\.\d]*)n/) { "#{$1}s" % label }
      str.gsub!(/(%[-+\.\d]*)u/) { "#{$1}f" % utime }
      str.gsub!(/(%[-+\.\d]*)y/) { "#{$1}f" % stime }
      str.gsub!(/(%[-+\.\d]*)U/) { "#{$1}f" % cutime }
      str.gsub!(/(%[-+\.\d]*)Y/) { "#{$1}f" % cstime }
      str.gsub!(/(%[-+\.\d]*)t/) { "#{$1}f" % total }
      str.gsub!(/(%[-+\.\d]*)r/) { "(#{$1}f)" % real }
      format ? str % args : str
    end
def format(format = nil, *args)
      str = (format || FORMAT).dup
      str.gsub!(/(%[-+\.\d]*)n/) { "#{$1}s" % label }
      str.gsub!(/(%[-+\.\d]*)u/) { "#{$1}f" % utime }
      str.gsub!(/(%[-+\.\d]*)y/) { "#{$1}f" % stime }
      str.gsub!(/(%[-+\.\d]*)U/) { "#{$1}f" % cutime }
      str.gsub!(/(%[-+\.\d]*)Y/) { "#{$1}f" % cstime }
      str.gsub!(/(%[-+\.\d]*)t/) { "#{$1}f" % total }
      str.gsub!(/(%[-+\.\d]*)r/) { "(#{$1}f)" % real }
      format ? str % args : str
    end
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:

 <tt>%u</tt>::     Replaced by the user CPU time, as reported by Tms#utime.
 <tt>%y</tt>::     Replaced by the system CPU time, as reported by #stime (Mnemonic: y of "s*y*stem")
 <tt>%U</tt>::     Replaced by the children's user CPU time, as reported by Tms#cutime
 <tt>%Y</tt>::     Replaced by the children's system CPU time, as reported by Tms#cstime
 <tt>%t</tt>::     Replaced by the total CPU time, as reported by Tms#total
 <tt>%r</tt>::     Replaced by the elapsed real time, as reported by Tms#real
 <tt>%n</tt>::     Replaced by the label string, as reported by Tms#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.