This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.

# Clock

 Clockrepresents a clock variable whose value cycles continuously from 0 to 1 once per second when it appears inside a dynamically updated object such as a Dynamic. Clock[t] cycles from 0 to t every t seconds. Clock cycles from 0 to every t seconds. Clock cycles through the range to every t seconds. Clock cycles through the range to over the course of seconds. Clock cycles from to in steps of dv, spending dv seconds at each value. Clock cycles from to in steps dv every t seconds. Clock goes through the cycle only n times, then always yields only the maximum value.
• The base for all times used by Clock is the creation time of the cell in which Clock appears.
• Clock[Infinity] gives a value that ranges from to at a rate of one unit per second.
• Clock[{vmin, Infinity}] gives a value that ranges from to at a rate of one unit per second.
• Clock[{vmin, Infinity, dv}] ranges from to in steps of dv, spending dv seconds at each value.
Create a clock value that cycles continuously from 0 to 1 once per second:
Use Clock to trigger updates for some time interval:
Create a clock value that cycles continuously from 0 to 1 once per second:
 Out[1]=

Use Clock to trigger updates for some time interval:
 Out[1]=
New in 6