• Sceneform SDK for Android was open sourced and archived (github.com/google-ar/sceneform-android-sdk) with version 1.16.0.
  • This site (developers.google.com/sceneform) serves as the documentation archive for the previous version, Sceneform SDK for Android 1.15.0.
  • Do not use version 1.17.0 of the Sceneform Maven artifacts.
  • The 1.17.1 Maven artifacts can be used. Other than the version, however, the 1.17.1 artifacts are identical to the 1.15.0 artifacts.

FrameTime

public class FrameTime

Provides time information for the current frame.

Public Methods

float
getDeltaSeconds()
Get the time in seconds between this frame and the last frame.
long
getDeltaTime(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(TimeUnit unit)
Get the time when this frame started.

Inherited Methods

Public Methods

public float getDeltaSeconds ()

Get the time in seconds between this frame and the last frame.

public long getDeltaTime (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

public float getStartSeconds ()

Get the time in seconds when this frame started.

public long getStartTime (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