Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- main()
- {
- for(new j = 0;j < 5;j++)
- {
- new a = GetTickCount();
- for(new i = 0;i < 10000000;i++)
- {
- new x,y,z;
- x = 12;
- y = 12342;
- z = 123123;
- x = 12;
- y = 12342;
- z = 123123;
- x = 12;
- y = 12342;
- z = 123123;
- x = 12;
- y = 12342;
- z = 123123;
- if(x == 0) {}
- else if(y == 0) {}
- else if(z == 0) {}
- X(x,y,z);
- }
- new b = GetTickCount();
- printf("Speed Test %d",b-a);
- a = GetTickCount();
- for(new i = 0;i < 10000000;i++)
- {
- new arr[3];
- arr[0] = 12;
- arr[1] = 12342;
- arr[2] = 123123;
- arr[0] = 12;
- arr[1] = 12342;
- arr[2] = 123123;
- arr[0] = 12;
- arr[1] = 12342;
- arr[2] = 123123;
- arr[0] = 12;
- arr[1] = 12342;
- arr[2] = 123123;
- if(arr[0] == 0) {}
- else if(arr[1] == 0) {}
- else if(arr[2] == 0) {}
- X(arr[0],arr[1],arr[2]);
- }
- b = GetTickCount();
- printf("Speed Test %d \n\n",b-a);
- }
- }
- stock X(x,y,z) {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement