Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/moredip/TickTock

silly little ActionScript stopwatch/profiler/timer/benchmarker
https://github.com/moredip/TickTock

Last synced: about 2 months ago
JSON representation

silly little ActionScript stopwatch/profiler/timer/benchmarker

Awesome Lists containing this project

README

        

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

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

or in a more functional, closure-y style:

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