}
Cobalt.now = function () {
- if (typeof performance !== 'undefined') {
+ if (typeof performance !== 'undefined' && performance.timing) {
return performance.timing.navigationStart + performance.now();
}
// Returns the current time in microseconds.
now : function () {
- if (typeof performance !== 'undefined') {
+ if (typeof performance !== 'undefined' && performance.timing) {
return performance.timing.navigationStart + performance.now();
}