Guest User

Untitled

a guest
May 20th, 2018
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.44 KB | None | 0 0
  1. class Werdasliestistdoof {
  2.  
  3. public static void main(String args[]){
  4. long a,b,d = 0;
  5. for(int j =1; j <6; j++){
  6.  
  7. a = gettime();
  8.  
  9. for(int i = 1; i <10001; i++)
  10. System.out.print("Wer das liest ist doof\t");
  11.  
  12. b = gettime();
  13. d += b - a;
  14.  
  15. }
  16.  
  17. d /= 6;
  18. System.out.print("Benoetigte Zeit fuer einen Werdasliestistdoof-Blockes ist: " +d/1000d + " Sekunden.");
  19. }
  20.  
  21.  
  22. public static long gettime(){
  23. return System.currentTimeMillis();
  24. }
  25.  
  26. }
Add Comment
Please, Sign In to add comment