Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (type is int) {
- typeTestsList.Add(() => {
- int a = 2, b = 2, c = 1;
- for (int i = 0; i < NumOfIterations; ++i) { a = b + c; b = a + c; c = a + b; }
- });
- typeTestsList.Add(() => {
- int a = 2, b = 2, c = 1;
- for (int i = 0; i < NumOfIterations; ++i) { a = b - c; b = a - c; c = a - b; }
- });
- typeTestsList.Add(() => {
- int a = 2, b = 2, c = 1;
- for (int i = 0; i < NumOfIterations; ++i) { a = b * c; b = a * c; c = a * b; }
- });
- typeTestsList.Add(() => {
- int a = 2, b = 2, c = 1;
- for (int i = 0; i < NumOfIterations; ++i) { a = b / c; b = a / c; c = a / b; }
- });
Advertisement
Add Comment
Please, Sign In to add comment