• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

GML How do I measure the process time a script took?

D

Dawn

Guest
Do I need to get the time after the current step? Is there a way to get the time in a script or a script block?
 
A

Annoyed Grunt

Guest
You can use get_timer() to get the time in microseconds. It is very much similar to current_time, which is however much less precise as it only returns the time in milliseconds.

Code:
var start_time = get_timer();
your_script();
var total_execution_time = get_timer() - start_time;
 
Top