Time-related functions for Lua, inspired in javascript's setTimeout and setInterval