Wolfram ResearchPRODUCTSPURCHASEFOR USERSCOMPANYOUR SITES
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.

TimeConstrained

Usage

TimeConstrained[expr, t] evaluates expr, stopping after t seconds.
TimeConstrained[expr, t, failexpr] returns failexpr if the time constraint is not met.


Notes

TimeConstrained generates an interrupt to abort the evaluation of expr if the evaluation is not completed within the specified time.
TimeConstrained evaluates failexpr only if the evaluation is aborted.
TimeConstrained returns $Aborted if the evaluation is aborted and no failexpr is specified.
TimeConstrained is accurate only down to a granularity of at least $TimeUnit seconds.
• Aborts generated by TimeConstrained are treated just like those generated by Abort, and can thus be overruled by AbortProtect.
• New in Version 1.


Any questions about topics on this page? Click here to get an individual response.Buy NowFree TrialMore Information



 © 2009 Wolfram Research, Inc.  Terms of Use  Privacy Policy |
Sign up for our newsletter: