silly little ActionScript stopwatch/profiler/timer/benchmarker
ActionScript
Switch branches/tags
Nothing to show
Pull request Compare This branch is 7 commits ahead of moredip:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
src
.gitignore
README
Rakefile
build-swc.xml

README

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" );