expression
Check a simple response-time budget
A real-time deadline is a time constraint, not simply a request to run quickly. This arithmetic model assumes externally justified upper bounds for one job. Add execution, blocking and interference with checked arithmetic; a passing result is only as sound as those bounds, not a full schedulability analysis or measured WCET. Expected host stdout (not executed): fits: true miss: false Common mistake: Using average execution time as a safe worst-case bound or ignoring interference.
Formal Syntax & Structure
rust syntaxrust
execution + blocking + interference <= deadlineWorking Example
Example Snippetrust
#![no_std]pub fn within_deadline(execution: u64, blocking: u64, interference: u64, deadline: u64) -> bool { execution.checked_add(blocking).and_then(|n| n.checked_add(interference)).is_some_and(|n| n <= deadline)}