import * as tsplus_module_1 from "@effect/core/io/Clock/definition";
import * as tsplus_module_2 from "@effect/core/io/definition";
import * as tsplus_module_3 from "@effect/core/io/FiberRef/operations/getWith";
/**
 * Retreives the `Clock` service from the environment and uses it to run the
 * specified effect.
 *
 * @tsplus static ets/Effect/Ops clockWith
 */

export function clockWith(f, __tsplusTrace) {
  return tsplus_module_3.getWith_(tsplus_module_2.services.value, services => f(services.get(tsplus_module_1.Clock.Tag)), __tsplusTrace);
}
//# sourceMappingURL=clockWith.mjs.map