Class Benchmarker


  • public class Benchmarker
    extends Object
    Simple bechmarking object. Set a logger. Every time you call lastTime() the amount of time since you called lastTime() us printed. For the total time elapsed, call totalTime() There is a canned message that will be printed to the log too, showing both total and elapsed time.

    Created by Jeff Gaynor
    on Nov 10, 2010 at 10:49:51 AM

    • Constructor Detail

      • Benchmarker

        public Benchmarker​(Logable myLogger)
    • Method Detail

      • totalTime

        public long totalTime()
        Get the total elapsed time for this
        Returns:
      • lastTime

        public long lastTime()
        Get the time elapsed since last call
        Returns:
      • msg

        public void msg​(String x)