]> git.r.bdr.sh - rbdr/cologne/blobdiff - lib/cobalt.js
Proper nows now
[rbdr/cologne] / lib / cobalt.js
index 981aab21b24c310d8f1cb161430233fefb5d7b51..17e694864606a70694840543ae9ab1ffa2f61c3e 100644 (file)
 
       // Returns the current time in microseconds.
       now : function () {
-        if (typeof performance !== 'undefined') {
+        if (typeof performance !== 'undefined' && performance.timing) {
           return performance.timing.navigationStart + performance.now();
         }