mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook Github Bot
parent
6f54f00e0d
commit
2690e7363c
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user