UpdateInterval
Details
- UpdateInterval->t specifies that updating should, if possible, be done at least every t seconds.
- UpdateInterval->Infinity specifies that updating should never be done.
- UpdateInterval->0 specifies that updating should be done as fast as possible.
Examples
open all close allBasic Examples (3)
Force DateString to dynamically update every second:
Dynamic[Refresh[DateString[], UpdateInterval -> 1]]Use UpdateInterval directly in Dynamic:
Dynamic[DateString[], UpdateInterval -> 1]Force an update to be done as fast as possible:
ProgressIndicator[Dynamic[x, UpdateInterval -> 0]]x = 0;While[x < 1, x = x + 10^-6]Possible Issues (1)
Updates may happen more frequently than specified by UpdateInterval:
DynamicModule[{x}, Dynamic[x++, UpdateInterval -> 1], Initialization :> (x = 0)]You can lock the refreshes to UpdateInterval by also specifying TrackedSymbols:
DynamicModule[{x}, Dynamic[x++, TrackedSymbols -> {}, UpdateInterval -> 1], Initialization :> (x = 0)]Related Guides
Related Workflows
- Put Autoupdating Dynamic Content in a Notebook
History
Text
Wolfram Research (2007), UpdateInterval, Wolfram Language function, https://reference.wolfram.com/language/ref/UpdateInterval.html.
CMS
Wolfram Language. 2007. "UpdateInterval." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/UpdateInterval.html.
APA
Wolfram Language. (2007). UpdateInterval. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/UpdateInterval.html
BibTeX
@misc{reference.wolfram_2026_updateinterval, author="Wolfram Research", title="{UpdateInterval}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/UpdateInterval.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_updateinterval, organization={Wolfram Research}, title={UpdateInterval}, year={2007}, url={https://reference.wolfram.com/language/ref/UpdateInterval.html}, note=[Accessed: 12-June-2026]}