예제 #1
0
        public void BenchmarkIncrementByVal(int limit)
        {
            SixtyFourByteStruct value = new SixtyFourByteStruct();
            int counter = 0;

            do
            {
                value = IncrementByVal(value);
                counter++;
            }while (limit != counter);
        }
예제 #2
0
 private SixtyFourByteStruct IncrementByVal(SixtyFourByteStruct toIncrement)
 {
     toIncrement.d0++;
     return(toIncrement);
 }
예제 #3
0
 private void IncrementByRef(ref SixtyFourByteStruct toIncrement)
 {
     toIncrement.d0++;
 }