mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/benchmark.rb: Fix a syntax error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
cf990c5ace
commit
8bd2d31d45
2 changed files with 6 additions and 2 deletions
|
|
@ -1,3 +1,7 @@
|
||||||
|
Sun Aug 31 16:58:49 2014 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
|
* lib/benchmark.rb: Fix a syntax error.
|
||||||
|
|
||||||
Sun Aug 31 08:46:44 2014 Eric Wong <e@80x24.org>
|
Sun Aug 31 08:46:44 2014 Eric Wong <e@80x24.org>
|
||||||
|
|
||||||
* ext/zlib/zlib.c (gzfile_reset): preserve ZSTREAM_FLAG_GZFILE
|
* ext/zlib/zlib.c (gzfile_reset): preserve ZSTREAM_FLAG_GZFILE
|
||||||
|
|
|
||||||
|
|
@ -272,8 +272,8 @@ module Benchmark
|
||||||
|
|
||||||
# :stopdoc:
|
# :stopdoc:
|
||||||
case
|
case
|
||||||
when defined?(Process::CLOCK_MONOTONIC_RAW) and
|
when (defined?(Process::CLOCK_MONOTONIC_RAW) and
|
||||||
(Process.clock_gettime(Process::CLOCK_MONOTONIC_RAW) rescue false)
|
(Process.clock_gettime(Process::CLOCK_MONOTONIC_RAW) rescue false))
|
||||||
BENCHMARK_CLOCK = Process::CLOCK_MONOTONIC_RAW
|
BENCHMARK_CLOCK = Process::CLOCK_MONOTONIC_RAW
|
||||||
when defined?(Process::CLOCK_MONOTONIC)
|
when defined?(Process::CLOCK_MONOTONIC)
|
||||||
BENCHMARK_CLOCK = Process::CLOCK_MONOTONIC
|
BENCHMARK_CLOCK = Process::CLOCK_MONOTONIC
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue