use monotonic clock if possible on Ruby 2.1+
commit5429893629154e39e0db33f5c98e237b29c7bbdc
authorEric Wong <e@80x24.org>
Wed, 27 May 2015 21:59:31 +0000 (27 21:59 +0000)
committerEric Wong <e@80x24.org>
Wed, 27 May 2015 21:59:31 +0000 (27 21:59 +0000)
tree9d6bc5f45869e3b433e0425e3f56656c8813e647
parent44dd54e3c3ae6a771baa17935ebe09ece1616026
use monotonic clock if possible on Ruby 2.1+

The monotonic clock is immune to discontinuous time jumps while
still taking into account clock imperfections, making it appropriate
for calculating time differences and timeouts.
lib/mogilefs.rb
lib/mogilefs/backend.rb
lib/mogilefs/http_reader.rb
lib/mogilefs/mogilefs.rb
lib/mogilefs/mysql.rb
lib/mogilefs/new_file/common.rb