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

Dawn

Member
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?
 
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