FluenTech / embedded-time

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

Generic add/sub #90

Closed korken89 closed 2 years ago

korken89 commented 3 years ago

Hi,

Fixes #89

korken89 commented 3 years ago

Ping @PTaylor-us

korken89 commented 3 years ago

I think this is ready for review @PTaylor-us

jhbruhn commented 3 years ago

I am currently in a situation where I need exactly this functionality. How is the state of this being merged? :)

jhbruhn commented 3 years ago

Would it make sense to not only add an implementation for Instant - Generic, but also for Generic - Generic?

korken89 commented 3 years ago

@jhbruhn I have added it.

PTaylor-us commented 3 years ago

Does it make sense to add other arithmetic for Generic as well (mult, div)?

I want to target the next release for this.