X-Git-Url: https://git.r.bdr.sh/rbdr/cologne/blobdiff_plain/bdedb5e54032363de8afa322fadae0e2cb2132d0..95239994bffa025ebd0d6dc98b34f211fb7c8cc1:/lib/cobalt.js diff --git a/lib/cobalt.js b/lib/cobalt.js index 45f0e26..771c9c7 100644 --- a/lib/cobalt.js +++ b/lib/cobalt.js @@ -6,6 +6,7 @@ var Ne = require('neon'); Module = Ne.Module; Class = Ne.Class; + var Microtime = require('microtime'); } else { Module = global.Module; Class = global.Class; @@ -90,7 +91,8 @@ _version : co.version, _timestamp : co.now(), _separatorType : type, - _indentLevel : co.currentIndent + _indentLevel : co.currentIndent, + _color : co.currentColor } }, @@ -206,8 +208,8 @@ return performance.timing.navigationStart + performance.now(); } - if (typeof process !== 'undefined') { - return process.hrtime(); + if (typeof Microtime !== 'undefined') { + return Microtime.nowDouble() * 1000; } return Date.now();