1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Ruby can delay arbitrarily because Ruby is not a realtime system,

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2014-09-02 15:47:53 +00:00
parent 8a4c23163c
commit 50190956c2

View file

@ -156,6 +156,6 @@ BENCH
def test_realtime_output def test_realtime_output
sleeptime = 1.0 sleeptime = 1.0
realtime = Benchmark.realtime { sleep sleeptime } realtime = Benchmark.realtime { sleep sleeptime }
assert_in_epsilon sleeptime, realtime assert_operator sleeptime, :<, realtime
end end
end end