Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #define loop 5000
- new var;
- main()
- {
- new Ticks = tickcount();
- new tmp = loop;
- for(new i=0; i < tmp; ++i) {
- var = random(0);
- }
- printf("first loop took: %d ms", tickcount() - Ticks);
- Ticks = tickcount();
- for(new i=0; i < test(); ++i) {
- var = random(0);
- }
- printf("second loop took: %d ms", tickcount() - Ticks);
- }
- stock test() { return loop; }
- #pragma unused var
Advertisement
Add Comment
Please, Sign In to add comment