blob: 8a7ed0c557a59e0e45ef33fedb77c8151c53d254 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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");
|