Class TimingPair<A>

java.lang.Object
tinyscalautils.java.TimingPair<A>

public class TimingPair<A> extends Object
A dedicated pair type that represents a value and the time it took to compute it. Timing pairs are immutable.
Since:
1.0
See Also:
  • Field Details

    • value

      public final @Nullable A value
      The value part of the pair.
    • time

      public final double time
      The timing part of the pair, in seconds.
  • Method Details