# File lib/rubygame/clock.rb, line 227 def initialize() @start = self.class.runtime() @last_tick = nil @ticks = 0 @target_frametime = nil # Frametime samples for framerate calculation @samples = [] @max_samples = 20 @granularity = 12 @nice = false # Should #tick return a ClockTicked event? @tick_events = false # Cache for past tick events with specific ms values @tick_cache = {} yield self if block_given? end