Skip to content

Commit 0cb8633

Browse files
committed
Prefer performance.now()
1 parent 5d063dd commit 0cb8633

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/analyze-action.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/database-upload.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export async function cleanupAndUploadDatabases(
107107
actionsUtil.getRequiredInput("checkout_path"),
108108
);
109109
try {
110-
const startTime = Date.now();
110+
const startTime = performance.now();
111111
await client.request(
112112
`POST /repos/:owner/:repo/code-scanning/codeql/databases/:language?name=:name&commit_oid=:commit_oid`,
113113
{
@@ -125,7 +125,7 @@ export async function cleanupAndUploadDatabases(
125125
},
126126
},
127127
);
128-
const endTime = Date.now();
128+
const endTime = performance.now();
129129
reports.push({
130130
language,
131131
zipped_upload_size_bytes: bundledDbSize,

0 commit comments

Comments
 (0)