treestyletab/modules/rap.js
2011-05-27 00:35:43 +09:00

12 lines
279 B
JavaScript

const EXPORTED_SYMBOLS = ['rap'];
var last = -1;
var start = Date.now();
function rap(aMessage) {
var now = Date.now();
var time = last < 0 ? 0 : (now - last);
dump(time+' (total '+(now - start)+') : '+(aMessage || Components.stack.caller)+'\n');
last = now;
}