Use CLOCK_REALTIME_COARSE when available.
authorben <ben@strongloop.com>
Thu, 7 May 2015 05:06:00 +0000 (22:06 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 7 May 2015 05:06:04 +0000 (05:06 +0000)
commit537ed7500c087786f28f51ff5222f1c2113776d3
tree76ed86793411b7b4ea8912843dbd8f25d9312856
parent4b0565262ab09411d85ee734bd1ae392bf2905c4
Use CLOCK_REALTIME_COARSE when available.

On systems that have CLOCK_REALTIME_COARSE with good enough resolution, we can
avoid making a system call to get the current time; it's serviced from the vDSO.

BUG=
LOG=N

Review URL: https://codereview.chromium.org/1125003002

Cr-Commit-Position: refs/heads/master@{#28280}
src/base/platform/time.cc