performance.js 461 B

12345678910111213141516171819
  1. /**
  2. * Copyright (c) 2013-present, Facebook, Inc.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. *
  7. * @typechecks
  8. */
  9. 'use strict';
  10. var ExecutionEnvironment = require("./ExecutionEnvironment");
  11. var performance;
  12. if (ExecutionEnvironment.canUseDOM) {
  13. performance = window.performance || window.msPerformance || window.webkitPerformance;
  14. }
  15. module.exports = performance || {};