import fs from "node:fs"; import { printTime, now } from "../util"; const test = false; const data = fs.readFileSync( test ? "./inputs/testinput" : "./inputs/input", "utf8" ); let timer = now.instant(); console.log( "part one:", data.split("\n").slice(0, -1), printTime(now.instant().since(timer)) ); timer = now.instant(); console.log( "part two:", data.split("\n").slice(0, -1), printTime(now.instant().since(timer)) );