Class MovingAverageMillisecondsTracker


  • public class MovingAverageMillisecondsTracker
    extends java.lang.Object
    Used to track a MovingAverage that represents the number of milliseconds that elapse within the execution of a block of code.
    • Constructor Detail

      • MovingAverageMillisecondsTracker

        public MovingAverageMillisecondsTracker()
      • MovingAverageMillisecondsTracker

        public MovingAverageMillisecondsTracker​(double weight)
      • MovingAverageMillisecondsTracker

        public MovingAverageMillisecondsTracker​(com.google.ar.sceneform.utilities.MovingAverageMillisecondsTracker.Clock clock)
      • MovingAverageMillisecondsTracker

        public MovingAverageMillisecondsTracker​(com.google.ar.sceneform.utilities.MovingAverageMillisecondsTracker.Clock clock,
                                                double weight)
    • Method Detail

      • beginSample

        public void beginSample()
        Call at the point in execution when the tracker should start measuring elapsed milliseconds.
      • endSample

        public void endSample()
        Call at the point in execution when the tracker should stop measuring elapsed milliseconds and post a new sample.
      • getAverage

        public double getAverage()