/*
Is it possible to turn the first block into the second block? I've done something similar with requestAnimationFrame, but because of the dot it does not seem to work here.
*/
////////////////////////////////////////////////////////////////////////////////////////
window.performance = window.performance || {};
window.performance.now = (function()
{
return window.performance.now ||
window.performance.webkitNow ||
window.performance.msNow ||
window.performance.mozNow ||
window.performance.oNow || function() { return new Date().getTime(); };
})();
var PeRfOrMaNcE = window.performance;
console.log(PeRfOrMaNcE.now());
////////////////////////////////////////////////////////////////////////////////////////
var PeRfOrMaNcE = (function()
{
return window.performance.now ||
window.performance.webkitNow ||
window.performance.msNow ||
window.performance.mozNow ||
window.performance.oNow || function() { return new Date().getTime(); };
})();
console.log(PeRfOrMaNcE());