This commit is contained in:
EGOIST 2022-05-08 23:37:06 +08:00
parent 19d6c2d999
commit d6704f2e20
1 changed files with 2 additions and 2 deletions

View File

@ -12,9 +12,9 @@ export const prisma = /* @__PURE__ */ singleton("prisma-read", () => {
})
client.$use(async (params, next) => {
const now = performance.now()
const now = Date.now()
const result = await next(params)
const end = performance.now()
const end = Date.now()
const duration = Math.floor(end - now)
console.log("query took", duration, "ms")
// See results here