Changeset 17

Show
Ignore:
Timestamp:
08/10/07 05:15:50 (1 year ago)
Author:
pitt-zhang
Message:

the result print hops

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/planet/test/dht/DHTTest.java

    r2 r17  
    109109          System.out.println ("Keys inserted with ["+steps+"] steps and ["+GenericApp.timeElapsedInSeconds(t1,t2)+"] seconds.\n"); 
    110110           
     111          Results.printhops(); 
     112                        int lookup_number_1 = Results.getLookup_number(); 
    111113          //LOOKUP PROCESS 
    112114          t1 = System.currentTimeMillis(); 
     
    126128          System.out.println ("Key lookup finished with ["+steps+"] steps and ["+GenericApp.timeElapsedInSeconds(t1,t2)+"] seconds.\n"); 
    127129           
     130          Results.printhops(); 
     131                        int lookup_number_2 = Results.getLookup_number(); 
     132                        System.out.println("loopup opertions is " + (lookup_number_2 - lookup_number_1)); 
     133 
    128134          //PRINT APPLICATON INFORMATION 
    129135          Iterator nodes = network.iterator();