update stats APIs to use TimePoint vs Duration correctly
authorAdam Simpkins <simpkins@fb.com>
Fri, 16 Sep 2016 19:23:41 +0000 (12:23 -0700)
committerFacebook Github Bot 2 <facebook-github-bot-2-bot@fb.com>
Fri, 16 Sep 2016 19:38:28 +0000 (12:38 -0700)
commit42ca5613a7c6e5d03523fb57f0ce718feb03dc26
treeea55c5296c2f88d9dba807c363c399f81b676a40
parent864eb2a656ecfe1c5a7ba05e7b5bd3b67db66ae5
update stats APIs to use TimePoint vs Duration correctly

Summary:
Update the stats APIs to correcly distinguish between TimePoint and Duration
types.

This does leave addValue() and update() APIs in place that accept Duration
values, for backwards compatibility.  These should eventually be removed once
all code has been converted to call the new APIs.

Reviewed By: yfeldblum

Differential Revision: D3808805

fbshipit-source-id: 36d6574ba4a09db7eb9f1a35e47addd3e07f8461
folly/detail/Stats.h
folly/stats/BucketedTimeSeries-defs.h
folly/stats/BucketedTimeSeries.h
folly/stats/MultiLevelTimeSeries-defs.h
folly/stats/MultiLevelTimeSeries.h
folly/stats/TimeseriesHistogram-defs.h
folly/stats/TimeseriesHistogram.h
folly/test/TimeseriesHistogramTest.cpp
folly/test/TimeseriesTest.cpp