correct debug-condition and added support for latency measurement using the resource timing api in browsers supporting it (currently IE10 & Chrome)