| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Simulink |
| Contents | Index |
| Learn more about 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 | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |