1 19 20 package org.netbeans.modules.java.source; 21 22 26 public class StopWatch { 27 28 long start; 29 30 31 public StopWatch() { 32 start(); 33 } 34 35 public void start() { 36 start = System.currentTimeMillis(); 37 } 38 39 public void stop( String message ) { 40 System.out.println( message + " " + ( System.currentTimeMillis() - start ) ); 41 } 42 43 } 44 | Popular Tags |