gretel / TickTock

silly little ActionScript stopwatch/profiler/timer/benchmarker

Home Page:thepete.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is an EXTREMELY simple little stopwatch class. You can measure wall-clock durations in two ways:

TickTock.start();
doSomeWork();
var elapsedTimeInMilliseconds : uint = TickTock.stop();
trace( "That took " + elapsedTimeInMilliseconds + " milliesconds" );

or in a more functional, closure-y style:

var elapsedTimeInMilliseconds : uint = TickTock.measure( function(){
  doSomeWork();
});
trace( "That took " + elapsedTimeInMilliseconds + " milliesconds" );

About

silly little ActionScript stopwatch/profiler/timer/benchmarker

thepete.net


Languages

Language:ActionScript 100.0%