This commit is contained in:
Holly Stubbs 2023-04-07 21:24:42 +01:00
parent aafee602e9
commit d730e8f115
Signed by: tgpholly
GPG key ID: B8583C4B7D18119E

View file

@ -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;
}
});