Class Timer


  • public class Timer
    extends java.lang.Object
    A simple timer, calculates the time interval between two events. Keeps two counters, one for long time intervals, to measure time between the start and end of the application for instance, and another for short events, to measure how long it took to reach a next block of code.
    Since:
    3.0.2
    Version:
    1.0
    Author:
    Peter Troshin
    • Constructor Summary

      Constructors 
      Constructor Description
      Timer()  
      Timer​(java.util.concurrent.TimeUnit reportIn)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void checkPoint()  
      • Methods inherited from class java.lang.Object

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

      • Timer

        public Timer()
      • Timer

        public Timer​(java.util.concurrent.TimeUnit reportIn)
    • Method Detail

      • checkPoint

        public void checkPoint()