lua.wetgenes.gamecake.toaster.newticks
ticks=require("wetgenes.gamecake.toaster").newticks(rate,jump)
create a ticks time controller for updates.
rate is time between steps , jump is how far behind we should get before giving up ( eg callback takes longer than rate allows ) these values are in seconds and default to 1/60 and 1 respectively.
Then we perform one or more update steps like so
ticks.step( callback ) -- callback may be called zero or more times
After that we should wait a bit (maybe draw a frame) and then call again.