Package pl.edu.icm.unity.base.utils
Class StopWatch
- java.lang.Object
-
- pl.edu.icm.unity.base.utils.StopWatch
-
public class StopWatch extends java.lang.ObjectUtility 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 voidprintPeriod(java.lang.String stringFormat)time will be put in {0} place of the parameter.voidprintTotal(java.lang.String stringFormat)time will be put in {0} place of the parameter.
-