]> git.r.bdr.sh - rbdr/cologne/commitdiff
Changes the instance now() to use constructor.
authorBen Beltran <redacted>
Mon, 13 May 2013 16:03:04 +0000 (11:03 -0500)
committerBen Beltran <redacted>
Mon, 13 May 2013 16:03:04 +0000 (11:03 -0500)
lib/cobalt.js

index 981aab21b24c310d8f1cb161430233fefb5d7b51..58a305c156a4306b4b19520ca2544e23a73de6b5 100644 (file)
 
       // 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) {