Skip to content

Update timestamp usage#60

Closed
mmmries wants to merge 2 commits intobasho:developfrom
mmmries:update_timestamp_usage
Closed

Update timestamp usage#60
mmmries wants to merge 2 commits intobasho:developfrom
mmmries:update_timestamp_usage

Conversation

@mmmries
Copy link

@mmmries mmmries commented May 4, 2016

I was testing out a few things with this library and noticed that it was failing to compile under Erlang/OTP 18+ because of the usage of erlang:now(). Not sure if this is the right move for the overall project, but if other people want to build this on more recent versions of erlang they might want to make a similar patch.

The deprecation information is documented in the erts docs for why they deprecated this.

@whitfin
Copy link

whitfin commented May 4, 2016

FWIW #58 covers this in a slightly more elegant way

@mmmries
Copy link
Author

mmmries commented May 4, 2016

@zackehh thanks for the reference. I hadn't thought of timer:tc, but obviously that is a more backwards-compatible way to handle this issue since it has been supported for many versions now.

I was also unaware of the erts_exit issue. Thanks for pointing out your PR.

@mmmries mmmries closed this May 4, 2016
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