minor Timekeeper bug
authorHans Fugal <fugalh@fb.com>
Thu, 2 Jul 2015 01:21:28 +0000 (18:21 -0700)
committerSara Golemon <sgolemon@fb.com>
Thu, 2 Jul 2015 18:03:13 +0000 (11:03 -0700)
commitb8147234df41cfe5997061dbf5e36f2e8cd822d6
treec388e4d59f05f5a1022afff9bbcf3ead485f4350
parent83e4f1b3b7217806c249c32d0fd26eab15604e6b
minor Timekeeper bug

Summary: Fix so `Timekeeper::at(now() - something)` works. Also introduce a test which explicitly tests when <= now codepath, which wasn't broken per se here, but which test also tickled this bug.

Reviewed By: @jsedgwick

Differential Revision: D2209166
folly/futures/Timekeeper.h
folly/futures/test/TimekeeperTest.cpp