AI-generated Key Takeaways
-
FrameTimeprovides time information for the current frame, such as start time and duration. -
It offers methods to get the time elapsed since the last frame (
getDeltaSeconds,getDeltaTime). -
It also provides methods to get the starting time of the current frame (
getStartSeconds,getStartTime). -
Time values can be retrieved in seconds or other units using
TimeUnit.
Provides time information for the current frame.
Public Methods
| float |
getDeltaSeconds()
Get the time in seconds between this frame and the last frame.
|
| long | |
| float |
getStartSeconds()
Get the time in seconds when this frame started.
|
| long |
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