public synchronized void add ( StopWatch sw ) { double timeInMs = sw . getTimeMicros ( ) / MICROS_IN_MILLIS ; // let fake the array for ( int i = 0 ; i < sw . getCount ( ) ; i ++ ) m_times . ( timeInMs / sw . getCount ( ) ) ; if ( timeInMs < m_min ) m_min = timeInMs ; if ( timeInMs > m_max ) m_max = timeInMs ; }
Add a StopWatch to the statistics .