pamoja for TypeScript - v0.2.0
    Preparing search index...

    Class DelayLog

    A delay that records every wait it is asked for and sleeps through none of them, as pamoja_hal::script::DelayLog does in Rust.

    Implements

    Index
    • get totalMicros(): number

      The waits added up, in microseconds.

      Returns number

    • get totalMillis(): number

      The waits added up, in whole milliseconds, rounded down.

      Returns number

    • get waitsMicros(): readonly number[]

      Every wait asked for, in microseconds, oldest first.

      Returns readonly number[]

    • Records a wait.

      Parameters

      • micros: number

        How long, in microseconds.

      Returns void