Some game timer code.