EffectTalk

Metric.timer for measuring duration

Use Metric.timer to measure how long operations take. Wrap an Effect with Metric.trackDuration(timer) to record the duration automatically.

  • Use Metric.timer(name, { description }) to create a timer
  • Use Metric.trackDuration(timer)(effect) to measure an Effect
  • Duration is recorded when the Effect completes
Loading code editor...