import { DurationInternal } from "@tsplus/stdlib/data/Duration" /** * A more powerful variation of `timed` that allows specifying the clock. * * @tsplus static effect/core/io/Effect.Aspects timedWith * @tsplus pipeable effect/core/io/Effect timedWith */ export function timedWith(milliseconds: Effect) { return (self: Effect): Effect => self.summarized(milliseconds, (start, end) => new DurationInternal(end - start)) }