asynchronics / asynchronix

High-performance asynchronous computation framework for system simulation
Apache License 2.0
170 stars 9 forks source link

Overload `schedule_*event` methods #7

Closed sbarral closed 1 year ago

sbarral commented 1 year ago

Goal

This PR merges each schedule_*event_in/schedule_*event_at pair of methods into a single overloaded method accepting either a relative Durationor an absolute MonotonicTime.

This is a mitigation to the recent explosion of schedule_*event methods introduced by PRs #5 and #6.

Impact

The API is not backward-compatible, but API compatibility was anyway already broken by PRs #5 and #6. This PR does not add additional overhead.