trace-timer

Inject timer information in trace statement
https://github.com/starburst997/haxe-trace-timer

To install, run:

haxelib install trace-timer 2.0.1 

See using Haxelib in Haxelib documentation for more information.

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();
Contributors
starburst997
Version
2.0.1
Published
1 year ago
License
MIT

All libraries are free

Every month, more than thousand developers use haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!

Explore Haxe

Haxe Manual

Haxe Code Cookbook

Haxe API documentation

You can try Haxe in the browser! try.haxe.org

Join us on Github!

Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.

Haxe on Github