Files
NativeScript/nativescript-core/animation-frame/animation-native.android.ts
Eduardo Speroni 2aa6e9bf92 feat: support requestAnimationFrame (#8112)
* feat: support requestAnimationFrame

* add native helpers to measure time

* test(animation-frame): add tests

* chore: refactor animation-frame to its own module

* chore: fix tslint
2019-11-29 11:17:26 +02:00

5 lines
100 B
TypeScript

export function getTimeInFrameBase(): number {
return java.lang.System.nanoTime() / 1000000;
}