get_timer

This returns the time since your game started.

Syntax:

GML Code Example

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:

GML Code Example

time = get_timer();

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





No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here