# File lib/rubygame/clock.rb, line 116 def tick() passed = Clock.runtime - @last_tick # how long since the last tick? if @target_frametime return Clock.delay(@target_frametime - passed) + passed end return passed ensure @last_tick = Clock.runtime() @ticks += 1 end