get_timer

This returns the time since your game started.

Syntax:

get_timer();


Returns: Real


Description

This function returns the time that your game has been running on the chosen platform in microseconds (there are 1 million microseconds per second).


Example:

time = get_timer();

This would store the timer value in the variable "time".


Back: Date And Time Functions
Next:delta_time
© Copyright YoYo Games Ltd. 2018 All Rights Reserved