Package com.bluesoft.util.metrics.core

Examples of com.bluesoft.util.metrics.core.TimingEvent


  }

  @Override
  public void addEvent( E event ) {
    super.addEvent( event );
    TimingEvent tevent = (TimingEvent)event;
    BigDecimal timing = BigDecimal.valueOf( tevent.getEndTime() - tevent.getStartTime() );
    BigDecimal delta = timing.subtract( mean );
    total = total.add( timing );
    mean = mean.add( delta.divide( new BigDecimal( getCount() ), mc ) );
    M2 = M2.add( delta.multiply( timing.subtract( mean ) ) );
    BigDecimal histogramBucket = timing.setScale( histogramScale, RoundingMode.HALF_UP );
View Full Code Here

TOP

Related Classes of com.bluesoft.util.metrics.core.TimingEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.