Skip to content

Commit f000116

Browse files
hoxyqfacebook-github-bot
authored andcommitted
Fix Timestamps conversion for Custom Tracks (#52479)
Summary: Pull Request resolved: #52479 # Changelog: [Internal] The previous cast is incorrect. Reviewed By: javache Differential Revision: D77894512 fbshipit-source-id: 67e6b9a4ed43020a343a2a9b5d702509c34ae41a
1 parent 5cf4d08 commit f000116

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

packages/react-native/ReactCommon/reactperflogger/reactperflogger/ReactPerfetto.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,7 @@ uint64_t highResTimeStampToPerfettoTraceTime(HighResTimeStamp timestamp) {
8888
auto nanoseconds = std::chrono::duration_cast<std::chrono::nanoseconds>(
8989
chronoDurationSinceSteadyClockEpoch);
9090

91-
return std::chrono::duration_cast<std::chrono::duration<std::uint64_t>>(
92-
nanoseconds)
93-
.count();
91+
return static_cast<uint64_t>(nanoseconds.count());
9492
}
9593

9694
} // namespace facebook::react

0 commit comments

Comments
 (0)