compareTo

open operator override fun compareTo(other: Measurement<@UnsafeVariance UnitType>): Int

Compares this measurement to another measurement, enabling sorting and range operations. The other parameter uses in variance. This allows a Measurement to be compared with a Measurement, which is required for the Comparable contract.