Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Mathnerd314
Copy link
Contributor

This changes the signum function for TimeSpec to match the multiplication. Also Seconds is moved into a separate module, so that the various functions can be re-exported with Seconds type. I had to export normalize and s2ns but people doing complicated things with the TimeSpec type will probably need them.

I also extended the tests a lot, amazingly they all pass. They don't pass if you change arbitrarySizedIntegral to arbitrary, due to overflow errors. Maybe there should be a warning somewhere about the silent overflow behavior.

And I added a Bounded instance for TimeSpec / Seconds, hopefully it's correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants