commit | badc743a3b4f1a1405cb8d9069d7353c333f3701 | [log] [tgz] |
---|---|---|
author | watk <watk@chromium.org> | Sat Apr 29 00:36:38 2017 |
committer | Commit bot <commit-bot@chromium.org> | Sat Apr 29 00:36:38 2017 |
tree | 942dd133bd6f116779cee21897d342deb1cb1268 | |
parent | fd60d8ca4a34a9cacfa3f45d65598165543fa74e [diff] |
base: Make ElapsedTimer movable Previously if you wanted to reset the starting point of the interval (for measuring an idle timeout, for example) you had to construct a new instance on the heap. Now it's possible to keep a stack/member variable (potentially base::Optional) and assign fresh values to it to reset it. Review-Url: https://codereview.chromium.org/2851493004 Cr-Commit-Position: refs/heads/master@{#468193}