@@ -1081,10 +1081,14 @@ CHIP_ERROR ReadClient::ProcessSubscribeResponse(System::PacketBufferHandle && aP
1081
1081
VerifyOrReturnError (IsMatchingSubscriptionId (subscriptionId), CHIP_ERROR_INVALID_SUBSCRIPTION);
1082
1082
ReturnErrorOnFailure (subscribeResponse.GetMaxInterval (&mMaxInterval ));
1083
1083
1084
+ #if CHIP_PROGRESS_LOGGING
1085
+ auto duration = System::Clock::Milliseconds32 (System::SystemClock ().GetMonotonicTimestamp () - mSubscribeRequestTime );
1086
+ #endif
1084
1087
ChipLogProgress (DataManagement,
1085
- " Subscription established with SubscriptionID = 0x%08" PRIx32 " MinInterval = %u"
1088
+ " Subscription established in % " PRIu32 " ms with SubscriptionID = 0x%08" PRIx32 " MinInterval = %u"
1086
1089
" s MaxInterval = %us Peer = %02x:" ChipLogFormatX64,
1087
- mSubscriptionId , mMinIntervalFloorSeconds , mMaxInterval , GetFabricIndex (), ChipLogValueX64 (GetPeerNodeId ()));
1090
+ duration.count (), mSubscriptionId , mMinIntervalFloorSeconds , mMaxInterval , GetFabricIndex (),
1091
+ ChipLogValueX64 (GetPeerNodeId ()));
1088
1092
1089
1093
ReturnErrorOnFailure (subscribeResponse.ExitContainer ());
1090
1094
@@ -1144,6 +1148,10 @@ CHIP_ERROR ReadClient::SendSubscribeRequestImpl(const ReadPrepareParams & aReadP
1144
1148
{
1145
1149
MATTER_LOG_METRIC_BEGIN (Tracing::kMetricDeviceSubscriptionSetup );
1146
1150
1151
+ #if CHIP_PROGRESS_LOGGING
1152
+ mSubscribeRequestTime = System::SystemClock ().GetMonotonicTimestamp ();
1153
+ #endif
1154
+
1147
1155
VerifyOrReturnError (ClientState::Idle == mState , CHIP_ERROR_INCORRECT_STATE);
1148
1156
1149
1157
if (&aReadPrepareParams != &mReadPrepareParams )
0 commit comments