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'

add!

add!(&blk) Instance Public methods An in-place version of add.

add

add() Instance Public methods Returns a new Tms object whose times are the sum of the times for this Tms object, plus the time required to execute the code block (blk).

/ 2

/(x) Instance Public methods Returns a new Tms object obtained by memberwise division of the individual times for this Tms object by x. This method and #+() are useful for taking statistics.

-

-(other) Instance Public methods Returns a new Tms object obtained by memberwise subtraction of the individual times for the other Tms object from those of this Tms object.

+

+(other) Instance Public methods Returns a new Tms object obtained by memberwise summation of the individual times for this Tms object with those of the other Tms object. This method and #/() are useful for taking statistics.

*

*(x) Instance Public methods Returns a new Tms object obtained by memberwise multiplication of the individual times for this Tms object by x.

new

new(utime = 0.0, stime = 0.0, cutime = 0.0, cstime = 0.0, real = 0.0, label = nil) Class Public methods Returns an initialized Tms object which has utime as the user CPU time, stime as the system CPU time, cutime as the children's user CPU time, cstime as the children's system CPU time, real as the elapsed real time and label as the label.

shutdown

basicsocket.shutdown([how]) => 0 Instance Public methods Calls shutdown(2) system call. s.shutdown(Socket::SHUT_RD) disallows further read. s.shutdown(Socket::SHUT_WR) disallows further write. s.shutdown(Socket::SHUT_RDWR) disallows further read and write. how can be symbol or string: :RD, :SHUT_RD, âRDâ and âSHUT_RDâ are accepted as Socket::SHUT_RD. :WR, :SHUT_WR, âWRâ and âSHUT_WRâ are accepted as Socket::SHUT_WR. :RDWR, :SHUT_RDWR, âRDWRâ and âSHUT_RDWRâ are accepted as

setsockopt

setsockopt(level, optname, optval)setsockopt(socketoption) Instance Public methods Sets a socket option. These are protocol and system specific, see your local system documentation for details. Parameters level is an integer, usually one of the SOL_ constants such as Socket::SOL_SOCKET, or a protocol level. A string or symbol of the name, possibly without prefix, is also accepted. optname is an integer, usually one of the SO_ constants, such as Socket::SO_REUSEADDR. A string or