function now() {
    return window.performance && performance.now && performance.now()
  }
Returns the result of the performance.now() method or null in browsers
that don't support the API.
@return {number} The elapsed time since the page was requested.