$TimeConstrained

$TimeConstrained
sets the allowed time, in seconds, for executing a $SimplificationFunction or DSolve.