current_time

Returns the milliseconds passed since the OS was started.

Syntax:

GML Code Example

current_time;


Returns: Real


Description

This read only variable will return the number of milliseconds that have passed since the OS was started.


Example:

GML Code Example

if current_time > 600000
    {
    msg = show_question_async("Would you like to rate?");
    }
 

The above code checks to see if more than 10 minutes have passed before asking the user a question.





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