You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
7 lines
233 B
7 lines
233 B
|
3 years ago
|
export function perf (type, startTime) {
|
||
|
|
/* eslint-disable no-undef */
|
||
|
|
startTime = startTime || __UniServiceStartTime__
|
||
|
|
const endTime = Date.now()
|
||
|
|
console.log(`[PERF][${endTime}] ${type} 耗时[${Date.now() - startTime}]`)
|
||
|
|
}
|