Migrate SpeculationsPumpSession to use ElapsedTimer instead of doubles
First things first, SpeculationsPumpSession was storing a base::Time at creation time to compute an elpased time later on. Using base::TimeTicks is probably better here since we are not interested in dates but in timestamps. Since the only purpose of that timestamp is to compute an elapsed time, using a base::ElapsedTimer seems the perfect fit. Bug: 979137 Change-Id: Ifbfec4dc9562d79cd0db7d1b158d4acb16c2f1f7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1705918Reviewed-by:Jeremy Roman <jbroman@chromium.org> Commit-Queue: Sergio Villar <svillar@igalia.com> Cr-Commit-Position: refs/heads/master@{#678303}
Showing
Please register or sign in to comment