aboutsummaryrefslogtreecommitdiff
path: root/2020/06/solve.js
diff options
context:
space:
mode:
Diffstat (limited to '2020/06/solve.js')
-rw-r--r--2020/06/solve.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/2020/06/solve.js b/2020/06/solve.js
index e82242a..c3907cf 100644
--- a/2020/06/solve.js
+++ b/2020/06/solve.js
@@ -1,3 +1,4 @@
+const { _, performance } = require("perf_hooks");
const fs = require("fs");
const data = fs.readFileSync("input", "utf8");
@@ -22,5 +23,8 @@ function part_two()
return res;
}
+const tic = performance.now();
console.log(part_one());
console.log(part_two());
+const toc = performance.now();
+console.log("TIME: " + ((toc - tic) / 1000).toFixed(6) + " seconds");