I saw the command game_ticks() in the documentation to get the number of ticks, but this throws an error.
It's just
ticks()
rather than game_ticks() now, I think
Ah okay, needs updating here
Updated.