コード例 #1
0
        public void BenchmarkIncrementByVal(int limit)
        {
            TwoFiveSixBytesStruct value = new TwoFiveSixBytesStruct();
            int counter = 0;

            do
            {
                value = IncrementByVal(value);
                counter++;
            }while (limit != counter);
        }
コード例 #2
0
 private TwoFiveSixBytesStruct IncrementByVal(TwoFiveSixBytesStruct toIncrement)
 {
     toIncrement.d0++;
     return(toIncrement);
 }
コード例 #3
0
 private void IncrementByRef(ref TwoFiveSixBytesStruct toIncrement)
 {
     toIncrement.d0++;
 }