I want to set
TimeConstrained globally, I tried use
$PrePrint as bellowed script:
$PrePrint = TimeConstrained[#,5] &;
But there's no effect, evaluation could not be aborted within given time.
So is there any way to do this? Thanks!
Mathematica Stack Exchange is a question and answer site for users of Wolfram Mathematica. It only takes a minute to sign up.Sign up to join this community
I found the solution in another topic here
SetAttributes[timecon, HoldAll] timecon[new_] := TimeConstrained[new, 5] $Pre = timecon;