Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/moredip/TickTock
- Owner: moredip
- Created: 2010-03-09T22:18:23.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2010-03-09T22:32:29.000Z (almost 15 years ago)
- Last Synced: 2024-11-14T06:34:53.923Z (about 2 months ago)
- Language: ActionScript
- Homepage: thepete.net
- Size: 77.1 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
- awesome-actionscript-sorted - TickTock - silly little ActionScript stopwatch/profiler/timer/benchmarker (Unsorted / Other API)
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" );