renpy.clear game runtime - Ren'Py Visual Novel Engine

documentation index ◦ reference manual ◦ function index

# renpy.clear_game_runtime

Function: | renpy.clear_game_runtime | ():

Resets the game runtime timer down to 0.

The game runtime counter counts the number of seconds that have elapsed while waiting for user input in the current context. (So it doesn't count time spent in the game menu.)

## Example

    # Clear the game runtime timer, so it doesn't reflect time spent
    # sitting at the main menu.
    $ renpy.clear_game_runtime()

documentation index ◦ reference manual ◦ function index