[API reference](https://evolu.dev/docs/api-reference) › [@evolu/common](https://evolu.dev/docs/api-reference/common) › [Schedule](https://evolu.dev/docs/api-reference/common/Schedule) › during

```ts
function during(
  duration: Duration,
): Schedule<
  number &
    Brand<"Int"> &
    Brand<"NonNegative"> &
    Brand<"LessThan281474976710655"> &
    Brand<"Millis">
>;
```

Defined in: [packages/common/src/Schedule.ts:478](https://github.com/evoluhq/evolu/blob/e7144e2bbe9069362b62dec1b64a8aa922b8f1b0/packages/common/src/Schedule.ts#L478)

A schedule that runs for a specified duration then stops.

Outputs the elapsed time. Useful for time-boxed operations or combining with
other schedules to create time-limited variants.

### Example

```ts
// Run for at most 30 seconds
const timeLimited = during("30s");

// Combine with exponential for time-boxed retry
const timedRetry = intersectSchedules(exponential("100ms"), during("10s"));
```