/**耗时时间单位 */ class PerUtils { static get now() { if (performance?.now) { return performance.now(); } else { return Date.now(); } } private static time: number = 0; static start() { this.time = this.now; } static End(flag?: string, ...vlaue) { let time = this.now - this.time; ConsoleEx.Log(flag, vlaue, "执行时间ms:", time); } } export default PerUtils;