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

No gettimeofday on Windows #98

Open
headius opened this issue Apr 19, 2017 · 0 comments
Open

No gettimeofday on Windows #98

headius opened this issue Apr 19, 2017 · 0 comments

Comments

@headius
Copy link
Member

headius commented Apr 19, 2017

For jruby/jruby#4393 we added gettimeofday to jnr-posix. Unfortunately, it is not supported on Windows (jruby/jruby#4565).

I'm doing a workaround that uses System.currentTimeMillis on Windows. This won't preserve microsecond accuracy, but it will work.

We need to do the additional logic to make an appropriate gettimeofday on Windows. I found at least one SO post describing how: http://stackoverflow.com/questions/1676036/what-should-i-use-to-replace-gettimeofday-on-windows

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