public String timerString(int level,String message){
  StringBuilder retStringBuf=new StringBuilder();
  for (int i=0; i < level; i++) {
    retStringBuf.append("| ");
  }
  retStringBuf.append("(");
  String timeSinceStartStr=String.valueOf(timeSinceStart());
  retStringBuf.append(timeSinceStartStr + ",");
  String timeSinceLastStr=String.valueOf(timeSinceLast());
  retStringBuf.append(timeSinceLastStr);
  retStringBuf.append(")");
  int spacecount=12 + (2 * level) - retStringBuf.length();
  for (int i=0; i < spacecount; i++) {
    retStringBuf.append(' ');
  }
  retStringBuf.append(message);
  lastMessageTime=System.currentTimeMillis();
  String retString=retStringBuf.toString();
  if (log && Debug.timingOn())   Debug.logTiming(retString,module);
  return retString;
}

public String timerString ( int level , String message ) { StringBuilder retStringBuf = new StringBuilder ( ) ; for ( int i = 0 ; i < level ; i ++ ) { retStringBuf . append ( "| " ) ; } retStringBuf . append ( "(" ) ; String timeSinceStartStr = String . valueOf ( timeSinceStart ( ) ) ; retStringBuf . append ( timeSinceStartStr + "," ) ; String timeSinceLastStr = String . valueOf ( timeSinceLast ( ) ) ; retStringBuf . append ( timeSinceLastStr ) ; retStringBuf . append ( ")" ) ; int spacecount = 12 + ( 2 * level ) - retStringBuf . length ( ) ; for ( int i = 0 ; i < spacecount ; i ++ ) { retStringBuf . append ( ' ' ) ; } retStringBuf . append ( message ) ; lastMessageTime = System . currentTimeMillis ( ) ; String retString = retStringBuf . toString ( ) ; if ( log && Debug . timingOn ( ) ) Debug . logTiming ( retString , module ) ; return retString ; }
creates a string with information including the passed message , the time since the last call , and the time since the beginning . this version allows an integer level to be specified to improve readability of the output .
