Skip to main content

getDeltaTime

Function

Returns the time difference in seconds between the current frame and previous frame.

  • Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.

Platform details

  • Snapchat — Fully supported.

  • SPECS — Fully supported.

  • Camera Kit Web — Fully supported.

  • Camera Kit Mobile — Fully supported.

getDeltaTime(): number

Returns the time difference in seconds between the current frame and previous frame.

Returns

number