Skip to content

Commit

Permalink
Add some logging to see what's up
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed Nov 6, 2024
1 parent 1a77146 commit 5c19a2f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/kernel/sleep_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def o.divmod(*); [0, 0.001]; end
end_time = Process.clock_gettime(Process::CLOCK_MONOTONIC)

actual_duration = end_time - start_time
puts "start: #{start_time}, end: #{end_time}, actual: #{actual_duration}"
(actual_duration > 0.01).should == true # 100 * 0.0001 => 0.01
(actual_duration < 0.03).should == true
end
Expand Down

0 comments on commit 5c19a2f

Please sign in to comment.