UMIS SDK
    Preparing search index...

    Interface SimClock

    A clock that moves only when it is told to. Every time in the SDK is an input, so a scenario that spans days runs in milliseconds: the clock is the single place where "now" comes from. All values are NumericDate seconds.

    interface SimClock {
        advance(seconds: number): number;
        now(): number;
        set(t: number): void;
    }
    Index
    • Moves the clock forward by seconds (zero or more) and returns the new time.

      Parameters

      • seconds: number

      Returns number

    • The current simulated time.

      Returns number

    • Puts the clock at t, forwards or backwards.

      Parameters

      • t: number

      Returns void