Advertisement
Guest User

Untitled

a guest
Jul 15th, 2015
782
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. for(new t = 0; t < 100000; t++){
  2. foreach(new i:Player){
  3. if( !IsConnected( i ) ) {
  4.  
  5. }
  6. }
  7. }
  8. printf("Foreach:%d ms", GetTickCount( ) - countForeach ) ;
  9.  
  10. new
  11. countPool = GetTickCount ( ) ;
  12. for(new t = 0; t < 100000; t++){
  13. for( new x = 0, j = GetPlayerPoolSize( ); x <= j; x++ ) {
  14. if( !IsConnected( x ) ) {
  15.  
  16. }
  17. }
  18. }
  19. printf("Pool:%d ms", GetTickCount( ) - countPool ) ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement