标签: performance flash actionscript
如何衡量在ActionScript 2.0中执行函数所需的时间?
答案 0 :(得分:5)
var beforeTime = getTimer(); yourFunction(); var afterTime = getTimer(); var measure = afterTime - beforeTime;