trace-timer 2.0.1

Inject timer information in trace statement

Released 2017-02-24.

To install, run:

haxelib install trace-timer 2.0.1

See using Haxelib in Haxelib documentation for more information.

Maintainerstarburst997
Websitehttps://github.com/starburst997/haxe-trace-timer
Current version2.0.1
StatisticsInstalled 14 times
LicenseMIT
Tags benchmark, timer, trace

README.md

haxe-trace-timer

Inject timer information in trace statement, mainly just the delta time since last trace statement in milliseconds.

Very simple, might add more info later on, but usefull when wanting to do some benchmark without adding any unneeded fluff (and removed from final build by using "--no-traces").

// Activate functionality
TraceTimer.activate();

// 0ms,Start
trace("Start");

// You can also reset the timer with an empty trace statement (nothing will be outputted)
trace("");

// Do something...
var a = 0;
for ( i in 0...1000000 )
{
  a++;
}

// 20ms,Finished
trace("Finished");

// If you would want to deactivate
TraceTimer.deactivate();