Hi…,
I want to test the speed of my (slow) code. I have tried it with performance.now(), but it seams unprecise and in ms.
var start = window.performance.now();
this.slowCode();
var millis = window.performance.now()- start;
cc.log('millis: ' + millis + ' ms');
Is there a pricise timer for nanoseconds?
Thanks
Mike