Class StopWatch


  • public class StopWatch
    extends java.lang.Object
    Utility class useful for micro benchmarking. When object is created it records current time. It can be then called to report cumulative time and the time from the last check.
    Author:
    K. Benedyczak
    • Constructor Summary

      Constructors 
      Constructor Description
      StopWatch()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void printPeriod​(java.lang.String stringFormat)
      time will be put in {0} place of the parameter.
      void printTotal​(java.lang.String stringFormat)
      time will be put in {0} place of the parameter.
      • Methods inherited from class java.lang.Object

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

      • StopWatch

        public StopWatch()
    • Method Detail

      • printTotal

        public void printTotal​(java.lang.String stringFormat)
        time will be put in {0} place of the parameter.
        Parameters:
        stringFormat -
      • printPeriod

        public void printPeriod​(java.lang.String stringFormat)
        time will be put in {0} place of the parameter.
        Parameters:
        stringFormat -