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

Instant missing conversion methods and type aliases #51

Open amsam0 opened 3 weeks ago

amsam0 commented 3 weeks ago

Hi, the Instant struct is currently very bare bones and does not include conversion methods such as millis and to_millis like the Duration and Rate structs have. This makes it pretty hard to work with since you'd have to do all conversion yourself to convert it into the unit you need.

Instant is also missing aliases such as MicrosInstant, which would be very convenient to have. Both Duration and Rate have these aliases so it would make sense to make them for Instant.