API Docs for: 1.13.1
Show:

game.Timer Class

Extends game.Class
Module: timer

Basic timer.

Constructor

game.Timer

(
  • [ms]
)

Parameters:

  • [ms] Number optional

Item Index

Methods

delta

()

Get time since last delta.

pause

()

Pause timer.

reset

()

Reset timer.

resume

()

Resume paused timer.

set

(
  • ms
)

Set time for timer.

Parameters:

  • ms Number

time

()

Get time since start.