public static void startTiming(String cause){
  if (timingStart != -1) {
    doneTiming();
  }
  timingCause=cause;
  timingStart=System.currentTimeMillis();
}

public static void startTiming ( String cause ) { if ( timingStart != - 1 ) { doneTiming ( ) ; } timingCause = cause ; timingStart = System . currentTimeMillis ( ) ; }
start timing an action .
