-
Notifications
You must be signed in to change notification settings - Fork 20
Added timespec_div #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Needed to divide a timespec by an integer number
added timespec_div description
fixed some errors in TEST_DIV_FUNC
Fixes for 32 bits systems
Fixes for 32 bits
Fixes
Rewrite the function to make it work for 32 bits
|
Sorry for the mess, i have some issues making it work for i386, do you have any suggestion to make it work without losing precision? |
|
Hi G.Pasotti, Thanks for this, mostly looks good to me although I'd rename it to something like I haven't tested it, I think something like this might handle the rounding correctly: I could also be completely wrong. Daniel |
changed name from timespec_div to timespec_idiv and test fix for fixing the rounding error
changed timespec_div to timespec_idiv
changed name from timespec_div to timespec_idiv
|
Your suggestion worked! Thanks! |
I found this library quite useful and I used some functions, but I also needed an extra one that i couldn't find so here it is.
I needed to divide a timespec by an integer value in order to have a mean value from a sum of timespecs.
I hope it's helpful and Thanks!
G.Pasotti