Class TimeMeasure

java.lang.Object
net.maswag.falcaun.TimeMeasure

public class TimeMeasure extends Object
Time measurement utility for tracking elapsed time in nanoseconds. This class provides methods to start, stop, and reset time measurements, as well as retrieve the accumulated time in seconds or nanoseconds.
  • Field Details

    • accumulatedTime

      private long accumulatedTime
    • measuring

      private boolean measuring
    • startTime

      private long startTime
  • Constructor Details

    • TimeMeasure

      public TimeMeasure()
  • Method Details

    • start

      public void start()
    • stop

      public void stop()
    • reset

      public void reset()
    • getSecond

      public double getSecond()
    • getNanosecond

      public double getNanosecond()