Module: Synctest::Patches::ProcessSingletonPatch
- Defined in:
- lib/synctest/patches.rb
Instance Method Summary collapse
Instance Method Details
#clock_gettime(clock_id, unit = :float_second) ⇒ Object
49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/synctest/patches.rb', line 49 def clock_gettime(clock_id, unit = :float_second) bubble = Synctest.current_bubble return super unless bubble case clock_id when Process::CLOCK_MONOTONIC bubble.monotonic_time(unit) when Process::CLOCK_REALTIME bubble.realtime(unit) else super end end |