diff options
author | Marvin Borner | 2021-12-13 16:07:52 +0100 |
---|---|---|
committer | Marvin Borner | 2021-12-13 19:21:41 +0100 |
commit | ed341f7f190cec49d0c3d6353f63234ce5b58bef (patch) | |
tree | 33b15183e0e76ff99a679d3ff4a68486f2f5128a /template/js | |
parent | a46a5cf547127ade88ce9ced2cc459086f770d07 (diff) |
ez
Diffstat (limited to 'template/js')
-rw-r--r-- | template/js/Makefile | 4 | ||||
-rw-r--r-- | template/js/input | 0 | ||||
-rw-r--r-- | template/js/solve.js | 21 |
3 files changed, 25 insertions, 0 deletions
diff --git a/template/js/Makefile b/template/js/Makefile new file mode 100644 index 0000000..9295d89 --- /dev/null +++ b/template/js/Makefile @@ -0,0 +1,4 @@ +run: + @node solve.js + +time: run diff --git a/template/js/input b/template/js/input new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/template/js/input diff --git a/template/js/solve.js b/template/js/solve.js new file mode 100644 index 0000000..8a7ed0c --- /dev/null +++ b/template/js/solve.js @@ -0,0 +1,21 @@ +const { _, performance } = require("perf_hooks"); +const fs = require("fs"); +const data = fs.readFileSync("input", "utf8"); + +function part_one() { + let res = 0; + + return res; +} + +function part_two() { + let res = 0; + + 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"); |