Sha256: fa491285600cbd0c3fb5afdc26c07115f8470f0feb30e623d38c3694a32079ec

Contents?: true

Size: 1.42 KB

Versions: 176

Compression:

Stored size: 1.42 KB

Contents

#
# Copyright (c) 2007-2008 RightScale Inc
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
#
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
#


# A hack because there's a bug in add! in Benchmark::Tms
module Benchmark  #:nodoc:
  class Tms #:nodoc:
    def add!(&blk)
      t = Benchmark::measure(&blk)
      @utime  = utime + t.utime
      @stime  = stime + t.stime
      @cutime = cutime + t.cutime
      @cstime = cstime + t.cstime
      @real   = real + t.real
      self
    end
  end
end

Version data entries

176 entries across 176 versions & 34 rubygems

Version Path
ahoward-helene-0.0.3 lib/helene/rightscale/awsbase/benchmark_fix.rb
airblade-right_aws-1.10.0 lib/awsbase/benchmark_fix.rb
appoxy-aws-1.11.15 lib/awsbase/benchmark_fix.rb
appoxy-aws-1.11.16 lib/awsbase/benchmark_fix.rb
appoxy-aws-1.11.20 lib/awsbase/benchmark_fix.rb
appoxy-aws-1.11.21 lib/awsbase/benchmark_fix.rb
appoxy-aws-1.11.22 lib/awsbase/benchmark_fix.rb
appoxy-aws-1.11.23 lib/awsbase/benchmark_fix.rb
appoxy-aws-1.11.24 lib/awsbase/benchmark_fix.rb
appoxy-aws-1.11.25 lib/awsbase/benchmark_fix.rb
appoxy-aws-1.11.26 lib/awsbase/benchmark_fix.rb
appoxy-aws-1.11.27 lib/awsbase/benchmark_fix.rb
appoxy-aws-1.11.28 lib/awsbase/benchmark_fix.rb
appoxy-aws-1.11.29 lib/awsbase/benchmark_fix.rb
appoxy-aws-1.11.30 lib/awsbase/benchmark_fix.rb
appoxy-aws-1.11.31 lib/awsbase/benchmark_fix.rb
appoxy-aws-1.11.32 lib/awsbase/benchmark_fix.rb
appoxy-aws-1.11.34 lib/awsbase/benchmark_fix.rb
appoxy-aws-1.11.35 lib/awsbase/benchmark_fix.rb
auser-poolparty-1.3.0 vendor/gems/right_aws/lib/awsbase/benchmark_fix.rb