Anton Gildebrand
Anton Gildebrand

Reputation: 3707

Actionscript 2.0, measure a functions execution time?

How can i measure the time it takes to execute a function in ActionScript 2.0?

Upvotes: 1

Views: 396

Answers (1)

AsTheWormTurns
AsTheWormTurns

Reputation: 1316

var beforeTime = getTimer();
yourFunction();
var afterTime = getTimer();
var measure = afterTime - beforeTime;

Upvotes: 5

Related Questions