TimeRemaining—Wolfram Documentation
gives the number of seconds remaining until the earliest enclosing TimeConstrained will request the current computation to stop.
Details
- If constrained by several nested TimeConstrained wrappers, TimeRemaining[] returns the time to the earliest time constraint.
- Without an enclosing TimeConstrained, TimeRemaining[] returns Infinity.
- TimeRemaining is accurate only down to a granularity of at least $TimeUnit seconds.
- TimeRemaining is based on absolute real time, not just CPU time.
Examples
open all close allText
Wolfram Research (2020), TimeRemaining, Wolfram Language function, https://reference.wolfram.com/language/ref/TimeRemaining.html.
CMS
Wolfram Language. 2020. "TimeRemaining." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/TimeRemaining.html.
APA
Wolfram Language. (2020). TimeRemaining. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TimeRemaining.html
BibTeX
@misc{reference.wolfram_2025_timeremaining, author="Wolfram Research", title="{TimeRemaining}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/TimeRemaining.html}", note=[Accessed: 22-February-2026]}
BibLaTeX
@online{reference.wolfram_2025_timeremaining, organization={Wolfram Research}, title={TimeRemaining}, year={2020}, url={https://reference.wolfram.com/language/ref/TimeRemaining.html}, note=[Accessed: 22-February-2026]}