Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for(new t = 0; t < 100000; t++){
- foreach(new i:Player){
- if( !IsConnected( i ) ) {
- }
- }
- }
- printf("Foreach:%d ms", GetTickCount( ) - countForeach ) ;
- new
- countPool = GetTickCount ( ) ;
- for(new t = 0; t < 100000; t++){
- for( new x = 0, j = GetPlayerPoolSize( ); x <= j; x++ ) {
- if( !IsConnected( x ) ) {
- }
- }
- }
- printf("Pool:%d ms", GetTickCount( ) - countPool ) ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement