Example #1
0
 public void BaseQuantity_AsUnitSystem()
 {
     for (var i = 0; i < BenchmarkConstants.NbUnits; i++)
     {
         Consumer.Consume(BaseQuantity.As(UnitSystems[0]));
     }
 }
Example #2
0
 public void BaseQuantity_As()
 {
     for (var i = 0; i < BenchmarkConstants.NbUnits; i++)
     {
         var conversion = BaseUnitConversions[BaseQuantityIndex];
         Consumer.Consume(BaseQuantity.As((LengthUnit)conversion.Value));
     }
 }