Package org.eatbacon.util

Examples of org.eatbacon.util.Timer


      e.printStackTrace();
    }
  }
 
  public void run() throws Exception {
    Timer timer = null;
    long count = 0;
   
    timer = Timer.start();
    count = fetchFullObject();
    timer.finish();
    report(this.getClass().getSimpleName(), "full", count, timer.getRate(count), getThroughput(charsRead, timer.getElapsedTimeMillis()));

    timer.reset();
    count = fetchOneLevelObject();
    timer.finish();
    report(this.getClass().getSimpleName(), "one-level", count, timer.getRate(count), getThroughput(charsRead, timer.getElapsedTimeMillis()));

    timer.reset();
    count = fetchTopLevelObject();
    timer.finish();
    report(this.getClass().getSimpleName(), "top-level", count, timer.getRate(count), getThroughput(charsRead, timer.getElapsedTimeMillis()));
  }
View Full Code Here

TOP

Related Classes of org.eatbacon.util.Timer

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.