Fabric: Cross-platform implementation of monotonicTimeInMilliseconds

Summary:
Now the function supports iOS.
We will use it soon.

Changelog: [Internal] Fabric-specific internal change.

Reviewed By: mdvacca

Differential Revision: D18285828

fbshipit-source-id: b9c16433e9c75ab4c071e4bd55074757372f6c0a
This commit is contained in:
Valentin Shergin
2019-11-04 18:21:12 -08:00
committed by Facebook Github Bot
parent 6f54f00e0d
commit 2690e7363c
3 changed files with 52 additions and 15 deletions
@@ -555,7 +555,7 @@ void Binding::schedulerDidFinishTransaction(
std::lock_guard<std::recursive_mutex> lock(commitMutex_);
SystraceSection s("FabricUIManagerBinding::schedulerDidFinishTransaction");
long finishTransactionStartTime = getTime();
long finishTransactionStartTime = monotonicTimeInMilliseconds();
jni::global_ref<jobject> localJavaUIManager = getJavaUIManager();
if (!localJavaUIManager) {
@@ -784,7 +784,7 @@ void Binding::schedulerDidFinishTransaction(
->getMethod<void(JMountItem::javaobject, jint, jlong, jlong, jlong, jlong, jlong, jlong, jlong)>(
"scheduleMountItem");
long finishTransactionEndTime = getTime();
long finishTransactionEndTime = monotonicTimeInMilliseconds();
scheduleMountItem(
localJavaUIManager,