Class MovingAverageMillisecondsTracker
- java.lang.Object
-
- com.google.ar.sceneform.utilities.MovingAverageMillisecondsTracker
-
public class MovingAverageMillisecondsTracker extends java.lang.Object
Used to track aMovingAverage
that represents the number of milliseconds that elapse within the execution of a block of code.
-
-
Constructor Summary
Constructors Constructor Description MovingAverageMillisecondsTracker()
MovingAverageMillisecondsTracker(double weight)
MovingAverageMillisecondsTracker(com.google.ar.sceneform.utilities.MovingAverageMillisecondsTracker.Clock clock)
MovingAverageMillisecondsTracker(com.google.ar.sceneform.utilities.MovingAverageMillisecondsTracker.Clock clock, double weight)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
beginSample()
Call at the point in execution when the tracker should start measuring elapsed milliseconds.void
endSample()
Call at the point in execution when the tracker should stop measuring elapsed milliseconds and post a new sample.double
getAverage()
-
-
-
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()
-
-