import * as tsplus_module_1 from "@tsplus/stdlib/data/Duration";
import * as tsplus_module_2 from "@effect/core/io/Effect/operations/summarized";
/**
 * A more powerful variation of `timed` that allows specifying the clock.
 *
 * @tsplus fluent ets/Effect timedWith
 */

export function timedWith_(self, milliseconds, __tsplusTrace) {
  return tsplus_module_2.summarized_(self, milliseconds, (start, end) => new tsplus_module_1.Duration(end - start), __tsplusTrace);
}
/**
 * A more powerful variation of `timed` that allows specifying the clock.
 *
 * @tsplus static ets/Effect/Aspects timedWith
 */

export const timedWith = (milliseconds, __tsplusTrace) => self => timedWith_(self, milliseconds, __tsplusTrace);
//# sourceMappingURL=timedWith.mjs.map