swift-metrics/Tests
Franz Busch 199b458a9f Add `Timer.measure` methods
# Motivation

This PR supersedes https://github.com/apple/swift-metrics/pull/135. The goal is to make it easier to measure asynchronous code when using `Metrics`.

# Modification

This PR does:
- Deprecate the current static method for measuring synchronous code
- Add a new instance method to measure synchronous code
- Add a new instance method to measure asynchronous code

# Result

It is now easier to measure asynchronous code.
2025-03-08 12:46:14 +01:00
..
MetricsTests Add `Timer.measure` methods 2025-03-08 12:46:14 +01:00