nickva commented on issue #2445: Eliminate multiple compiler warnings
URL: https://github.com/apache/couchdb/pull/2445#issuecomment-573827525
 
 
   @wohali 
   
   (Re: monotonic)
   
   Good idea to call it out! Yeah in general `erlang:timestamp/0` isn't a 
1-to-1 replacement , as `now/0` returns strictly monotonic timestamps. In this 
case however we are operating at minute level intervals and even if previous 
timestamp is greater than the current one, `timer:now_diff/2` will just return 
a negative value and eventually should catch up, instead of say crashing

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to