Initial Commit
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
/**
|
||||
* Single source of module-scope wall-clock reads for bitpacker-network.
|
||||
*
|
||||
* The genesis convention is that determinism rule (no module-scope
|
||||
* `Date.now()` in implementation files) is enforced by allow-listing ONE
|
||||
* factory per package. Every other module in this package reads time only
|
||||
* through the injected `Clock` parameter.
|
||||
*/
|
||||
import type { Clock } from "@suaveplan/types";
|
||||
|
||||
export const defaultClock: Clock = () => Date.now();
|
||||
Reference in New Issue
Block a user