UNPKG

@atlaskit/profilecard

Version:

A React component to display a card with user information.

17 lines (16 loc) 523 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getPageTime = void 0; var isPerformanceAvailable = function isPerformanceAvailable() { return typeof window !== 'undefined' && 'performance' in window && !!performance.now; }; var performanceAvailable = isPerformanceAvailable(); var initialPageTime = Date.now(); var getPageTime = exports.getPageTime = function getPageTime() { if (performanceAvailable) { return performance.now(); } return Date.now() - initialPageTime; };