Class Benchmark.Statistician

  • Enclosing class:
    Benchmark

    public static class Benchmark.Statistician
    extends java.lang.Object
    Collects statistics for a test that is run multiple times.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String desc  
      private java.util.List<java.lang.Long> durations  
    • Constructor Summary

      Constructors 
      Constructor Description
      Statistician​(java.lang.String desc)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void printDurations()  
      void record​(long start)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • desc

        private final java.lang.String desc
      • durations

        private final java.util.List<java.lang.Long> durations
    • Constructor Detail

      • Statistician

        public Statistician​(java.lang.String desc)
    • Method Detail

      • record

        public void record​(long start)
      • printDurations

        private void printDurations()