performance.js 462 B

1234567891011121314151617181920
  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 || {};