korken89 / fugit

`fugit` provides a comprehensive library of `Duration` and `Instant` for the handling of time in embedded systems, doing all it can at compile time.
Apache License 2.0
55 stars 16 forks source link

Type aliases for common cases #2

Closed Sympatron closed 2 years ago

Sympatron commented 2 years ago

What do you think about defining type aliases like type MillisDuration<T> = Duration<T, 1, 1000> (or similar) to cut down on typing and mental load? Or even MillisDurationU32 to simplify it even more?

korken89 commented 2 years ago

This would be a good addition for simplicity

korken89 commented 2 years ago

I added it in a2230a79e2d2b0f1d22c4c383f575d0aa1bcfc11