mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
* reduce watcher timeout in windows, fix hot reload with empty files * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
8 lines
242 B
TypeScript
8 lines
242 B
TypeScript
import previous from "./timestamp.txt";
|
|
import { join } from "path";
|
|
|
|
const current = performance.now() + performance.timeOrigin;
|
|
console.log(current - previous);
|
|
|
|
require("fs").writeFileSync(join(import.meta.dir, "timestamp.txt"), current);
|