X-Git-Url: https://git.r.bdr.sh/rbdr/cologne/blobdiff_plain/faf177fa8ddb796858f4397749c83db9386b3c5c..9f9564be72fe27b823713f6e104343c4affadb42:/lib/cobalt.js diff --git a/lib/cobalt.js b/lib/cobalt.js index c832c7f..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; @@ -207,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();