Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- new maxp = 100;
- stock func()
- {
- return maxp;
- }
- main()
- {
- for(new j = 0;j < 5;j++)
- {
- new a = GetTickCount();
- for(new i = 0;i < 1000000;i++)
- {
- for(new i = 0,j = func(); i < j;i++) {}
- }
- new b = GetTickCount();
- printf("Speed Test %d",b-a);
- a = GetTickCount();
- for(new i = 0;i < 1000000;i++)
- {
- for(new i = 0; i < func();i++) {}
- }
- b = GetTickCount();
- printf("Speed Test %d \n\n",b-a);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement