Loop Time
authorDave Watson <davejwatson@fb.com>
Wed, 17 Jan 2018 16:17:44 +0000 (08:17 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 17 Jan 2018 16:36:14 +0000 (08:36 -0800)
commita4306bcdf04c95f321a96ab9b0f29de1c1e678f1
treedb84bd11ddbf699659eb7c42b3807161c3bab3a8
parent86cefd11d497791f00769e69fba550f710906527
Loop Time

Summary:
Only do the exponential loop smoothing once every 10ms.
If we need it before then, do it linearly.

Also, remove one of the now()s by only calling it once.

Reviewed By: bmaurer, yfeldblum

Differential Revision: D6690047

fbshipit-source-id: 8267c01064aabc17cb8e86eb888e6120c99a129f
folly/io/async/EventBase.cpp
folly/io/async/EventBase.h
folly/io/async/test/EventBaseBenchmark.cpp