Typeberry by Fluffy Labs - v0.5.0
    Preparing search index...

    Variable nowConst

    now: () => number = ...

    Get current time in milliseconds (works in both Node and browser).

    Node.js implementation converts hrtime bigint nanoseconds to milliseconds. This is safe because dividing nanoseconds by 1_000_000 yields milliseconds, which remain well below Number.MAX_SAFE_INTEGER for practical runtimes (would take ~285 years to overflow).

    Type Declaration

      • (): number
      • Returns number