Documentation

Std.Time.Time.Unit.Nanosecond

Ordinal represents a nanosecond value that is bounded between 0 and 999,999,999 nanoseconds.

Equations
Instances For

    Offset represents a time offset in nanoseconds.

    Equations
    Instances For
      @[inline]

      Creates an Offset from a natural number.

      Equations
      Instances For
        @[inline]

        Creates an Offset from an integer.

        Equations
        Instances For

          Span represents a bounded value for nanoseconds, ranging between -999999999 and 999999999. This can be used for operations that involve differences or adjustments within this range.

          Equations
          Instances For

            Creates a new Offset out of a Span.

            Equations
            • span.toOffset = { val := span.val }
            Instances For

              Ordinal represents a bounded value for nanoseconds in a day, which ranges between 0 and 86400000000000.

              Equations
              Instances For
                @[inline]
                def Std.Time.Nanosecond.Ordinal.ofInt (data : Int) (h : 0 data data 999999999) :

                Creates an Ordinal from an integer, ensuring the value is within bounds.

                Equations
                Instances For
                  @[inline]
                  def Std.Time.Nanosecond.Ordinal.ofNat (data : Nat) (h : data 999999999) :

                  Creates an Ordinal from a natural number, ensuring the value is within bounds.

                  Equations
                  Instances For
                    @[inline]

                    Creates an Ordinal from a Fin, ensuring the value is within bounds.

                    Equations
                    Instances For
                      @[inline]

                      Converts an Ordinal to an Offset.

                      Equations
                      • ordinal.toOffset = { val := ordinal.val }
                      Instances For