2.11 resource-limit
(require sicm/general/resource-limit) | package: rktsicm |
procedure
(with-limited-time max-time thunk) → any/c
max-time : real? thunk : (-> any/c)
procedure
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.