/** * Retreives the `Clock` service from the environment and uses it to run the * specified effect. * * @tsplus static effect/core/io/Effect.Ops clockWith */ export function clockWith(f: (clock: Clock) => Effect): Effect { return DefaultServices.currentServices.getWith((services) => f(services.get(Clock.Tag))) }