Merge "Improve speed of fetching clock for metrics since it's on several transition hot paths" into main