@adviser/cement - v0.0.0
    Preparing search index...

    Function TimeFactory

    • Creates a Time implementation based on the specified mode.

      Parameters

      • timeMode: string

        Time behavior mode (REAL, CONST, or STEP)

      Returns Time

      Time implementation matching the mode

      // Production: uses real system time
      const realTime = TimeFactory(TimeMode.REAL);

      // Testing: constant time
      const constTime = TimeFactory(TimeMode.CONST);

      // Testing: stepped time
      const stepTime = TimeFactory(TimeMode.STEP);