Module: TuiTui::Clock

Defined in:
lib/tui_tui/clock.rb

Overview

The single source of monotonic time, so timers and timeouts never depend on wall-clock adjustments. Injected as a callable where tests need to control it.

Class Method Summary collapse

Class Method Details

.monotonicObject



9
# File 'lib/tui_tui/clock.rb', line 9

def monotonic = Process.clock_gettime(Process::CLOCK_MONOTONIC)