# How could I set TimeConstrained globally?

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!

• Consider $Pre and related items. – bbgodfrey Aug 31 '15 at 4:00 • @bbgodfrey Thanks a lot. I found the solution by searching '$Pre'. – Michael Aug 31 '15 at 5:39

SetAttributes[timecon, HoldAll]