more accurate timer between client and api
This commit is contained in:
+2
-2
@@ -38,10 +38,10 @@ export async function startRun(
|
|||||||
|
|
||||||
if (!mode) return;
|
if (!mode) return;
|
||||||
|
|
||||||
let start = Date.now();
|
|
||||||
|
|
||||||
const runId = await addRun(problemId, mode);
|
const runId = await addRun(problemId, mode);
|
||||||
|
|
||||||
|
let start = Date.now();
|
||||||
|
|
||||||
currentRun = {
|
currentRun = {
|
||||||
id: runId,
|
id: runId,
|
||||||
problemId,
|
problemId,
|
||||||
|
|||||||
Reference in New Issue
Block a user