Skip to content
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

SignedLong does not work on Mac OS in Gettimeofday. #6

Open
konstantin-krasheninnikov-ullink opened this issue Feb 15, 2017 · 0 comments

Comments

@konstantin-krasheninnikov-ullink
Copy link

konstantin-krasheninnikov-ullink commented Feb 15, 2017

I am on 12.5.0 Darwin Kernel Version 12.5.0: ...RELEASE_X86_64 x86_64 and SignedLong did not work for me. Generally speaking I do not see a need for long as it is an offset in microseconds. But it seem in Linux headers it is long int and on Mac:
typedef __int32_t __darwin_suseconds_t;

Maybe there's a need for Struct.suseconds_t type similar to Struct.time_t. Could anyone shed some light of 32- vs 64-bit int for suseconds_t type?

Alternatively SignedLong can still work but with tv.tv_usec.intValue() instead of tv.tv_usec.get().

Thanks.

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

No branches or pull requests

1 participant