getDisplayRefreshNsec

open fun getDisplayRefreshNsec(activity: Activity): Long

Obtains the approximate refresh time, in nanoseconds, of the default display associated with the activity.

The actual refresh rate can vary slightly (e.g. 58-62fps on a 60fps device).