Reputation: 3707
How can i measure the time it takes to execute a function in ActionScript 2.0?
Upvotes: 1
Views: 396
Reputation: 1316
var beforeTime = getTimer();
yourFunction();
var afterTime = getTimer();
var measure = afterTime - beforeTime;
Upvotes: 5