-
-
Notifications
You must be signed in to change notification settings - Fork 665
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
heartbeat [nfc]: extend heartbeat-test event system
Because the mocked version of `Date.now()` doesn't actually advance while we have timers running, a succession of events recorded between timer-advances will appear to take place on the same timestamp. We therefore extend the timestamp system using dual numbers [1]. Conveniently, these also provide a sound mathematical basis with which to formalize away the fuzziness involved in timing guarantees on a (barely-even-)soft-real-time system. [1] https://en.wikipedia.org/wiki/Dual_number
- Loading branch information
1 parent
0d590a5
commit 5491e5e
Showing
1 changed file
with
129 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters