module EventSource::Controls::Time::Effective::Raw
Public Class Methods
example(time=nil, offset_milliseconds: nil)
click to toggle source
# File lib/event_source/controls/time.rb, line 49 def self.example(time=nil, offset_milliseconds: nil) time ||= Time::Raw.example offset_milliseconds ||= 1 offset = Rational(offset_milliseconds, 1000) time += offset time end