additional minor cleanup to the TimeUtil code
authorAdam Simpkins <simpkins@fb.com>
Tue, 6 Jun 2017 21:09:41 +0000 (14:09 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 6 Jun 2017 21:21:27 +0000 (14:21 -0700)
commit3396d608d04669425d91af30aec7cab030ab0ec2
tree82dd220fab60f8a1e77ed424dc05f8624e12a6c6
parentc2bd7be53da2470697729213308947e3467cedb5
additional minor cleanup to the TimeUtil code

Summary:
- Fix TimePoint to use steady_clock rather than system_clock
- Use nanoseconds instead of milliseconds in most locations

This code should probably also be moved into a folly::testing namespace or
something.  This class is pretty specific to unit tests, and `folly::TimePoint`
seems like too generic of a name for it.  However, just to keep things simple
I'm not doing that as part of this diff yet.

Reviewed By: yfeldblum

Differential Revision: D5175630

fbshipit-source-id: 26490fc7ff1b25fb86f09309e81108828cd0f091
folly/io/async/test/TimeUtil.cpp
folly/io/async/test/TimeUtil.h