diff --git a/packages/react-native/ReactCommon/hermes/inspector/chrome/Connection.cpp b/packages/react-native/ReactCommon/hermes/inspector/chrome/Connection.cpp index 4bc2a2b2dccd65..eb548df0bdd594 100644 --- a/packages/react-native/ReactCommon/hermes/inspector/chrome/Connection.cpp +++ b/packages/react-native/ReactCommon/hermes/inspector/chrome/Connection.cpp @@ -421,6 +421,10 @@ void Connection::Impl::onMessageAdded( const ConsoleMessageInfo &info) { m::runtime::ConsoleAPICalledNotification apiCalledNote; apiCalledNote.type = info.level; + apiCalledNote.timestamp = + std::chrono::duration>( + std::chrono::system_clock::now().time_since_epoch()) + .count(); // TODO(jpporto): fix test cases sending invalid context id. // apiCalledNote.executionContextId = kHermesExecutionContextId;