diff options
Diffstat (limited to '2020/08/solve.js')
-rw-r--r-- | 2020/08/solve.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/2020/08/solve.js b/2020/08/solve.js index c03edcb..68006d6 100644 --- a/2020/08/solve.js +++ b/2020/08/solve.js @@ -1,3 +1,4 @@ +const { _, performance } = require("perf_hooks"); const fs = require("fs"); const data = fs.readFileSync("input", "utf8").split('\n'); @@ -48,5 +49,8 @@ function partTwo() } } +const tic = performance.now(); console.log(partOne()); console.log(partTwo()); +const toc = performance.now(); +console.log("TIME: " + ((toc - tic) / 1000).toFixed(6) + " seconds"); |