Skip to content

Commit

Permalink
Print time from client
Browse files Browse the repository at this point in the history
  • Loading branch information
Schlauer-Hax committed Dec 9, 2024
1 parent 485d694 commit 5b3bbc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clients/typescript/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function startWebsocket() {
const startTime = performance.now();
const result = await runner.run(solution, data);
const time = performance.now() - startTime;
console.log(`result for ${solution} with runid ${runid}: ${result}`)
console.log(`result for ${solution} with runid ${runid} in ${time}: ${result}`)
ws.send(`aocclient:ts:result:${runid}:${time}:[${result[0]}, ${result[1]}]`);
}
});
Expand Down

0 comments on commit 5b3bbc7

Please sign in to comment.