TimedIntegrate[exp, vars]
is like Integrate
, but stops after the number of seconds specified by the option Timing
. Options of Integrate
can be given and are passed on.
This should reach to be done
[Log[x^5], {x, 0, 1}, Timing -> 1] TimedIntegrate
This shouldn’t
[Log[Cos[x^5]], {x, 0, 1}, Timing -> 10, Integrate -> int] TimedIntegrate