Add a time delta parameter to onTick

Signed-off-by: Aleksi Sapon <QcTechs@gmail.com>