FluenTech / embedded-time

Time(ing) library (Instant/Duration/Clock/Timer/Period/Frequency) for bare-metal embedded systems
Apache License 2.0
90 stars 17 forks source link

optimize generic Duration usage #115

Closed PTaylor-us closed 3 years ago

PTaylor-us commented 3 years ago

Problem

Currently, a generic function cannot take either a Generic or named Duration/Rate. This is because Generic does not implement FixedPoint.

Solution

This will a provide a much more ergonomic way of using a generic Duration and Rate types. I think.