+ Cobalt.now = function () {
+ if (typeof performance !== 'undefined') {
+ return performance.timing.navigationStart + performance.now();
+ }
+
+ if (typeof Microtime !== 'undefined') {
+ return Microtime.nowDouble() * 1000;
+ }
+
+ return Date.now();
+ }
+