mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
计时
This commit is contained in:
@@ -11,9 +11,9 @@ export async function getPostBlocks(id, from, slice) {
|
||||
return filterPostBlocks(id, pageBlock, slice)
|
||||
}
|
||||
|
||||
const start = performance.now()
|
||||
const start = new Date().getTime()
|
||||
pageBlock = await getPageWithRetry(id, from)
|
||||
const end = performance.now()
|
||||
const end = new Date().getTime()
|
||||
console.log('[API耗时]', `${end - start}ms`)
|
||||
|
||||
if (pageBlock) {
|
||||
|
||||
Reference in New Issue
Block a user