Beispiel #1
0
        public void BenchmarkIncrementByVal(int limit)
        {
            OneTwoEightByteStruct value = new OneTwoEightByteStruct();
            int counter = 0;

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