Skip to content

Commit

Permalink
Add logs for timer
Browse files Browse the repository at this point in the history
  • Loading branch information
erbesharat committed Dec 8, 2024
1 parent 20e9014 commit 1652470
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/cli/src/splitRunner/splitRunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ class SplitRunner {
}

async run(): Promise<File[]> {
console.time("\nSplitting");
console.info(`Splitting group: ${this.group.name}`);
console.time("Total Splitting Time");

const worker = new Worker(path.resolve(__dirname, "worker.js"), {
workerData: {
Expand All @@ -26,7 +27,7 @@ class SplitRunner {

return new Promise<File[]>((resolve, reject) => {
worker.on("message", (updatedFiles: File[]) => {
console.timeEnd("Splitting");
console.timeEnd("Total Splitting Time");
resolve(updatedFiles);
});

Expand Down

0 comments on commit 1652470

Please sign in to comment.