public void begin(){
  startMillis=System.currentTimeMillis();
  endMillis=startMillis;
}

public void begin ( ) { startMillis = System . currentTimeMillis ( ) ; endMillis = startMillis ; }
start the task progress timer . should be called when a task thread begins processing .
