Skip to content

Commit

Permalink
计时
Browse files Browse the repository at this point in the history
  • Loading branch information
tangly1024 committed May 9, 2022
1 parent 37465ca commit 58a64eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/notion/getPostBlocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 58a64eb

Please sign in to comment.