Well, Claude did: https://crates.io/crates/rt-app-rs
I run a fuzzer to help ensure that it is a drop-in replacement for rt-app.
The reason was that I wanted to add a feature. I'm using the rt-app workload description language in my simulator for running sched_ext schedulers: sched-ext/scx#3352
I was having problems where the calibration process is not good enough. A task that is supposed to take 10 seconds will be off by a significant margin. I introduced calibration: precise which actually just has the worker spin on reading the clock instead of spinning in a dummy loop. That way it takes almost exactly the amount of time it's supposde to take.
Well, Claude did: https://crates.io/crates/rt-app-rs
I run a fuzzer to help ensure that it is a drop-in replacement for rt-app.
The reason was that I wanted to add a feature. I'm using the rt-app workload description language in my simulator for running sched_ext schedulers: sched-ext/scx#3352
I was having problems where the calibration process is not good enough. A task that is supposed to take 10 seconds will be off by a significant margin. I introduced
calibration: precisewhich actually just has the worker spin on reading the clock instead of spinning in a dummy loop. That way it takes almost exactly the amount of time it's supposde to take.