mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
cc78aee56a
Summary: Fabric's Telemetry uses `std::chrono::steady_clock::time_point`s to represent the exact moments in time when some events happen. This is the same clock that pretty much any performance tracker use (and should use), QPL included. However, different trackers use different serializable representations of that timepoints. This diff adds functions that convert the timepoint value to UNIX Timestamp and to a number of seconds from the `steady_clock` epoch start. Changelog: [Internal] Fabric-specific internal change. Reviewed By: mdvacca Differential Revision: D22887632 fbshipit-source-id: 2b51acddccee9af8071a34797b5015d6fd008394