Skip to content

Latest commit

 

History

History
12 lines (6 loc) · 488 Bytes

kernel.md

File metadata and controls

12 lines (6 loc) · 488 Bytes

Module Kernel

The Kernel module is included by class Object, so its methods are available in every Ruby object. Kernel in the DragonRuby Runtime has patches for how standard out is handled and also contains a unit of time in games called a tick.

tick_count

Returns the current tick of the game. This value is reset if you call $gtk.reset.

global_tick_count

Returns the current tick of the application from the point it was started. This value is never reset.