Package com.google.ar.sceneform
Class FrameTime
- java.lang.Object
-
- com.google.ar.sceneform.FrameTime
-
public class FrameTime extends java.lang.Object
Provides time information for the current frame.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float
getDeltaSeconds()
Get the time in seconds between this frame and the last frame.long
getDeltaTime(java.util.concurrent.TimeUnit unit)
Get the time between this frame and the last frame.float
getStartSeconds()
Get the time in seconds when this frame started.long
getStartTime(java.util.concurrent.TimeUnit unit)
Get the time when this frame started.
-
-
-
Method Detail
-
getDeltaSeconds
public float getDeltaSeconds()
Get the time in seconds between this frame and the last frame.
-
getStartSeconds
public float getStartSeconds()
Get the time in seconds when this frame started.
-
getDeltaTime
public long getDeltaTime(java.util.concurrent.TimeUnit unit)
Get the time between this frame and the last frame.- Parameters:
unit
- The unit time will be returned in- Returns:
- The time between frames
-
getStartTime
public long getStartTime(java.util.concurrent.TimeUnit unit)
Get the time when this frame started.- Parameters:
unit
- The unit time will be returned in- Returns:
- The start time of the frame in nanoseconds
-
-