Sha256: 279f04db6ccb393d952989f8cccde49f5ff5a7a9659e3b8bfa2e3eb8c0d27df6

Contents?: true

Size: 282 Bytes

Versions: 21

Compression:

Stored size: 282 Bytes

Contents

module Benchmark::Driver::Time
  if defined?(Process::CLOCK_MONOTONIC)
    def self.now
      Process.clock_gettime(Process::CLOCK_MONOTONIC)
    end
  else
    $stderr.puts "Process::CLOCK_MONOTONIC was unavailable. Using Time."
    def self.now
      ::Time.now
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
benchmark_driver-0.8.6 lib/benchmark/driver/time.rb
benchmark_driver-0.8.5 lib/benchmark/driver/time.rb
benchmark_driver-0.8.4 lib/benchmark/driver/time.rb
benchmark_driver-0.8.3 lib/benchmark/driver/time.rb
benchmark_driver-0.8.2 lib/benchmark/driver/time.rb
benchmark_driver-0.8.1 lib/benchmark/driver/time.rb
benchmark_driver-0.8.0 lib/benchmark/driver/time.rb
benchmark_driver-0.7.2 lib/benchmark/driver/time.rb
benchmark_driver-0.7.1 lib/benchmark/driver/time.rb
benchmark_driver-0.7.0 lib/benchmark/driver/time.rb
benchmark_driver-0.6.2 lib/benchmark/driver/time.rb
benchmark_driver-0.6.1 lib/benchmark/driver/time.rb
benchmark_driver-0.6.0 lib/benchmark/driver/time.rb
benchmark_driver-0.5.1 lib/benchmark/driver/time.rb
benchmark_driver-0.5.0 lib/benchmark/driver/time.rb
benchmark_driver-0.4.5 lib/benchmark/driver/time.rb
benchmark_driver-0.4.4 lib/benchmark/driver/time.rb
benchmark_driver-0.4.3 lib/benchmark/driver/time.rb
benchmark_driver-0.4.2 lib/benchmark/driver/time.rb
benchmark_driver-0.4.1 lib/benchmark/driver/time.rb