On Mon, 2 Sep 2019, Szabolcs Horvát wrote:
> Does Sage have a feature to constrain computation time? Suppose the function
> f() takes a long time to run. I am looking for a way to run it *for at most
> 5 minutes*.
I think it has. But what if you just use timeout from command line? I.e.
timeout $((5*60)) ./sage my_script.sage
--
Jori Mäntysalo
Tampereen yliopisto - Ihminen ratkaisee