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

Add is_zero method for Duration plz #30

Closed qiuchengxuan closed 2 years ago

korken89 commented 2 years ago

Hi, we could add this - though does dur.ticks() == 0 not work for you?

qiuchengxuan commented 2 years ago

Indeed it works, but convert duration into other form for comparison seems not very good :)

korken89 commented 2 years ago

If you make a PR for this I'll merge it :)