public static void profile ( Performer performer , int num ) { long deltaTime = measureTime ( performer , num ) ; System . out . printf ( "%30s time = %8d ms per frame = %8.3f\n" , performer . getName ( ) , deltaTime , ( deltaTime / ( double ) num ) ) ; // System.out.println(performer.getClass().getSimpleName()+ // " time = "+deltaTime+" ms per frame "+(deltaTime/(double)num)); }
See how long it takes to run the process num times and print the results to standard out