From 963cb46b688216154f1299c233832258be5f5bbd Mon Sep 17 00:00:00 2001 From: Ben Beltran Date: Mon, 13 May 2013 11:03:04 -0500 Subject: Changes the instance now() to use constructor. --- lib/cobalt.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'lib') diff --git a/lib/cobalt.js b/lib/cobalt.js index 981aab2..58a305c 100644 --- a/lib/cobalt.js +++ b/lib/cobalt.js @@ -239,15 +239,7 @@ // Returns the current time in microseconds. now : function () { - if (typeof performance !== 'undefined') { - return performance.timing.navigationStart + performance.now(); - } - - if (typeof Microtime !== 'undefined') { - return Microtime.nowDouble() * 1000; - } - - return Date.now(); + this.constructor.now(); }, _levelString : function (level) { -- cgit