| Simulink® | ![]() |
Sources
The Clock block outputs the current simulation time at each simulation step. This block is useful for other blocks that need the simulation time.
When you need the current time within a discrete system, use the Digital Clock block.
The Clock block outputs a real-valued signal of type double.

Use the Display time check box to display the current simulation time inside the Clock icon.
The Decimation parameter value is the increment at which Simulink software updates the Clock icon when Display time is checked. Specify a positive integer (the default is 10). For example, if the decimation is 1000, then, for a fixed integration step of 1 millisecond, the Clock icon updates at 1 second, 2 seconds, and so on.
Sample Time | Continuous |
Scalar Expansion | N/A |
Dimensionalized | No |
Zero Crossing | No |
![]() | Chirp Signal | Combinatorial Logic | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |