high-precision time representation
Currently time in AMiRo-OS is represented at microsecond precision by definition. For very time sensitive use cases, however, this resolution might turn out to be too coarse.
The proposed solution would be to introduce another compile time switch, to select at which resolution time is represented. This can be either a completely individual value (e.g. 1000000 for microsecond precision) or just a selection between predefined settings (e.g. µs or ns).
While the benefit of such enhancement would be limited to very few use cases (but crucial for those), it may cause code incompatibilities.
As resolution scales, the data types aos_timestamp_t
, aos_interval_t
and aos_longinterval_t
can represent different time scales.
Especially the rather efficient aos_interval_t
type may cause issues.