diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/debug/FpsDebugFrameCallback.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/debug/FpsDebugFrameCallback.kt index fd5b5420fcf..b36322f3754 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/debug/FpsDebugFrameCallback.kt +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/debug/FpsDebugFrameCallback.kt @@ -144,7 +144,7 @@ public class FpsDebugFrameCallback(private val reactContext: ReactContext) : public fun get4PlusFrameStutters(): Int = fourPlusFrameStutters public val totalTimeMS: Int - get() = (lastFrameTime.toDouble() - firstFrameTime).toInt() / 1000000 + get() = ((lastFrameTime.toDouble() - firstFrameTime) / 1000000.0).toInt() /** * Returns the FpsInfo as if stop had been called at the given upToTimeMs. Only valid if