CPU Time
Summary
Provides CPU uptime in milliseconds and microseconds, and allows creation of software clocks.
Description
The CPU Time component outputs the elapsed time since the CPU started running, available both in Milliseconds and Microseconds. In addition, you can configure Elements that act as software clocks. Each software clock can be set to a specific current time, after which it will continue to update and provide a running real-time value.
This makes the component useful for:
Measuring elapsed CPU uptime.
Implementing software-based clocks.
Tracking custom time references in embedded applications.
Diagram:
Categories
- File:TArduinoDateTimeCategory.png Category Date/Time – Time measurement and software clocks.
Properties
- Enabled – Enables or disables the component.
- Elements – Collection of software clock elements. Each clock can:
- Be set to an initial time value.
- Continue counting forward as a real-time clock after being set.
Pins
- Clock – Input clock signal used for updating software clock elements.
- Micro Seconds – Outputs the number of microseconds since the CPU started.
- Milli Seconds – Outputs the number of milliseconds since the CPU started.