apple/swift-metrics

Should recordInterval live in CoreMetrics?

ktoso opened this issue · 1 comments

ktoso commented

I initially said in review that it should be in Metrics: #83

but maybe that was wrong; it does not depend on foundation but just dispatch hm.

func recordInterval(since: DispatchTime, end: DispatchTime = .now()) {
self.recordNanoseconds(end.uptimeNanoseconds - since.uptimeNanoseconds)
}

FYI @tomerd @slashmo

I think depending on Dispatch in Core is fine, there are a couple of other ones in there that can move too