Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // speed test macro
- new _I,_TiCkCoUn_T;
- #define START_SPEED_TEST(%0) {_I=0,_TiCkCoUn_T=GetTickCount();while(_I<%0){_I++;
- #define FINISH_SPEED_TEST(%0) }printf("Executing `%s` %d times took: %d ms",%0, _I,GetTickCount()-_TiCkCoUn_T);}
- // example
- new test2[15000];
- START_SPEED_TEST(10000)
- test2[_I] = 1;
- FINISH_SPEED_TEST("Array Direct Assign")
Add Comment
Please, Sign In to add comment