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

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