Documentation

Std.Time.Duration

Represents a time interval with nanoseconds precision.

Instances For
    Equations
    • One or more equations did not get rendered due to their size.
    Equations
    @[inline]

    Negates a Duration, flipping its second and nanosecond values.

    Instances For
      @[inline]

      Creates a new Duration out of Second.Offset.

      Instances For

        Creates a new Duration out of Nanosecond.Offset.

        Instances For
          theorem Std.Time.Duration.ofNanoseconds.mod_nonpos {a : Int} (b : Int) :
          a 0b 00 a.tmod b
          @[inline]

          Checks if the duration is zero seconds and zero nanoseconds.

          Equations
          Instances For
            @[inline]

            Converts a Duration to a Second.Offset

            Instances For
              @[inline]

              Converts a Duration to a Millisecond.Offset

              Equations
              Instances For
                @[inline]

                Converts a Duration to a Nanosecond.Offset

                Instances For
                  @[inline]

                  Converts a Duration to a Minute.Offset

                  Equations
                  Instances For
                    @[inline]

                    Converts a Duration to a Day.Offset

                    Instances For
                      @[inline]

                      Normalizes Second.Offset and NanoSecond.span in order to build a new Duration out of it.

                      Equations
                      Instances For
                        @[inline]

                        Adds two durations together, handling any carry-over in nanoseconds.

                        Equations
                        Instances For
                          @[inline]

                          Subtracts one Duration from another.

                          Equations
                          • t₁.sub t₂ = t₁.add t₂.neg
                          Instances For
                            @[inline]

                            Adds a Nanosecond.Offset to a Duration

                            Instances For
                              @[inline]

                              Adds a Millisecond.Offset to a Duration

                              Instances For
                                @[inline]

                                Adds a Millisecond.Offset to a Duration

                                Instances For
                                  @[inline]

                                  Adds a Nanosecond.Offset to a Duration

                                  Instances For
                                    @[inline]

                                    Adds a Second.Offset to a Duration

                                    Equations
                                    Instances For
                                      @[inline]

                                      Subtracts a Second.Offset from a Duration

                                      Equations
                                      Instances For
                                        @[inline]

                                        Adds a Minute.Offset to a Duration

                                        Equations
                                        Instances For
                                          @[inline]

                                          Subtracts a Minute.Offset from a Duration

                                          Equations
                                          Instances For
                                            @[inline]

                                            Adds an Hour.Offset to a Duration

                                            Instances For
                                              @[inline]

                                              Subtracts an Hour.Offset from a Duration

                                              Equations
                                              Instances For
                                                @[inline]

                                                Adds a Day.Offset to a Duration

                                                Equations
                                                Instances For
                                                  @[inline]

                                                  Subtracts a Day.Offset from a Duration

                                                  Equations
                                                  Instances For
                                                    @[inline]

                                                    Adds a Week.Offset to a Duration

                                                    Equations
                                                    Instances For
                                                      @[inline]

                                                      Subtracts a Week.Offset from a Duration

                                                      Instances For