commit | 5dbe3c6379d5712ee4c5de25eb37057b2c7b6d29 | [log] [tgz] |
---|---|---|
author | Ewout van Bekkum <ewout@google.com> | Thu Apr 29 17:01:33 2021 -0700 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Apr 30 16:24:47 2021 +0000 |
tree | 0e4b1faf71d70f9bdf8d01d12b9b94228e3d6621 | |
parent | 4298fd053ea27cb946d85ab45d176505ca07b926 [diff] |
pw_chrono: Adds SystemClock helper to compute deadlines Adds SystemClock::TimePointAfterAtLeast to compute the nearest time_point after the specified duration has fully elapsed. This adds in a single tick to handle the partial tick problem where for example a timeout of 1 tick can result in anything from non-blocking to the actual requested tick [0,1]. Instead this adds a singular tick resulting in at most 1 added tick where the timeout is instead [1,2]. No-Docs-Update-Reason: Trivial helper, full docs are coming soon. Change-Id: Ica29a6bbd30133b3d9dfc43333c3fe6fff49ea74 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/42934 Commit-Queue: Ewout van Bekkum <ewout@google.com> Reviewed-by: Wyatt Hepler <hepler@google.com>
See our website: http://pigweed.dev