Skip to content

Comment on Deterministic simulation testing for async Rustparent

Comments

Do you mean monotonic clocks only or no use of clocks?

In my model, the "current time" was intended to be passed in via arg, or gotten via a helper, failing that. Never system time directly. But also, yes - monotonic time only. Robotics code tends to never handle time jumping properly, and I've found configuring the system to properly intake time sources to be tricky.

If you require time to be injected, you can test faster than real time which is really nice

Indeed! (It’s in the blog post)

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.