v.22.5Improvement

Metrics for Time Spent Reading from S3 Calculated Correctly

The metrics about time spent reading from s3 now calculated correctly. Close #35483. #36572 (Alexey Milovidov).
Metrics related to the time spent reading from S3 storage are now calculated correctly in ClickHouse.

Why it matters

Previously, the reported metrics for S3 read time were inaccurate or misleading, which could cause confusion when monitoring system performance or diagnosing issues. This fix ensures that the time measurements reflect the true read duration, improving observability and reliability of cloud storage usage statistics.

How to use it

No special action is needed to enable this fix. Once upgraded to the version including this change, the S3 read time metrics will automatically be calculated and reported correctly.