/** * Returns an aspect that will update this metric with the duration that the * effect takes to execute. To call this method, the input type of the metric * must be `Duration`. * * @tsplus getter effect/core/io/Metrics/Metric trackDuration */ export function trackDuration( self: Metric ): (effect: Effect) => Effect { return self.trackDurationWith(identity) }