From a9fde1c6e30cbeedc8061b7a6ae9887a0e816223 Mon Sep 17 00:00:00 2001 From: MeerrettichMeister Date: Sat, 7 Dec 2024 12:03:09 +0100 Subject: [PATCH] Config project a little & measure 7.2 time --- .gitignore | 2 +- src/7/index.ts | 4 +++- tsconfig.json | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 253b567..08ce778 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ /tmp /out-tsc - +/dist /node_modules npm-debug.log* yarn-debug.log* diff --git a/src/7/index.ts b/src/7/index.ts index 15a8132..e84b3c8 100644 --- a/src/7/index.ts +++ b/src/7/index.ts @@ -39,6 +39,7 @@ calculations.forEach(calculation => { } }) console.log(calcualtable) +let start = new Date().getTime(); calcualtable = 0; calculations.forEach(calculation => { const operations = calculation.numbers.length-1; @@ -67,4 +68,5 @@ calculations.forEach(calculation => { } } }) -console.log(calcualtable) \ No newline at end of file +console.log(calcualtable) +console.log("Took " + (new Date().getTime() - start)) \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index 3a172fd..55fed41 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -8,5 +8,5 @@ "skipLibCheck": true, "outDir": "dist" }, - "include": ["src"] + "include": ["tryhard"] }