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