react-native-macos/ReactCommon/jsiexecutor
Ruslan Shestopalyuk ad953f6f4b Unify native performanceNow implementation across platforms
Summary:
[Changelog][Internal]

Both iOS and Android platforms are at this point using the same native implementation of `performanceNow`, based on `std::chrono` (it used to be different some time ago).

This diff unifies the implementations, so it comes from one place in C++ code for all platforms.

The context is that I am developing event timing instrumentation and need a consistent way to get current timestamp from either JS or native (C++) side. The latter is now possible via calling `JSExecutor::performanceNow()`, which is guaranteed to be the same as called from JS.

Reviewed By: christophpurrer

Differential Revision: D42267898

fbshipit-source-id: dcb592f37d6567340ea59faddbf3b6d2b8507d50
2022-12-28 11:03:14 -08:00
..
jsireact Unify native performanceNow implementation across platforms 2022-12-28 11:03:14 -08:00
.clang-tidy The life-changing magic of clang-tidying up 2020-02-04 11:09:30 -08:00
BUCK Back out "add oncall annotation for BUCK files in xplat based on supermodule information - /home/s2shi/tmp/xplat_buck_oncall/xplat_buck_batch10" (#35064) 2022-10-24 10:44:39 -07:00
CMakeLists.txt Enable C++17 for cxxreact and jsiexecutor/inspector and ... (#35435) 2022-11-23 18:48:47 -08:00
React-jsiexecutor.podspec Bring back JSIDynamic and JSI together 2022-11-29 08:53:50 -08:00