Skip to main content

getRealTimeNanos

Function

Get current time in nanoseconds.

  • 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.

getRealTimeNanos(): number

Get current time in nanoseconds. Useful when optimizing a Lens to understand its performance.

Returns

number