On this page:
with-limited-time
allocated-time-expired?

2.11 resource-limit🔗

procedure

(with-limited-time max-time thunk)  any/c

  max-time : real?
  thunk : (-> any/c)

procedure

(allocated-time-expired?)  boolean?

Helper for timekeeping. with-limited-time calls the thunk in which allocated-time-expired? will return #t when more time has expired than max-time (in seconds). Outside of with-limited-time, allocated-time-expired? will always return #f.