From d730e8f11575c7c4438b825b99cc32cccc25a6f9 Mon Sep 17 00:00:00 2001 From: Holly Date: Fri, 7 Apr 2023 21:24:42 +0100 Subject: [PATCH] a --- server/Workers/ChunkWorker.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/Workers/ChunkWorker.js b/server/Workers/ChunkWorker.js index d353aae..3a6ae59 100644 --- a/server/Workers/ChunkWorker.js +++ b/server/Workers/ChunkWorker.js @@ -25,10 +25,10 @@ parentPort.on("message", (data) => { break; case "generate": - const startTime = new Date().getTime(); + const startTime = Date.now(); const chunkData = generateChunk(data[1], data[2], data[4]); parentPort.postMessage([data[0], chunkData[0], data[1], data[2], data[3], chunkData[1]]); - console.log(`Chunk took ${new Date().getTime() - startTime}ms`); + console.log(`Chunk took ${Date.now() - startTime}ms`); break; } });