TIME


time() or t()

This function returns the number of seconds as a decimal up to ten-thousands of a second since the running your game. This is calculated by counting the number of times _update or _update60 is called.

For _update, which runs 30 times per second, time() increases by .0333.

For _update60, which runs 60 times per second, time() increases by .0167.

If you want to use this as a counter in your game, you should store it once per frame because multiple calls of time() from the same frame will return the same result, wasting tokens.

elapsed_seconds = time()

643

12 Apr 2023

Font