Skip to content

silly little ActionScript stopwatch/profiler/timer/benchmarker

Notifications You must be signed in to change notification settings

moredip/TickTock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

silly little ActionScript stopwatch/profiler/timer/benchmarker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages