commit | 39f51b8056d054a6db3de4ae5efc371a477ce906 | [log] [tgz] |
---|---|---|
author | Filip Filmar <fmil@google.com> | Tue Nov 05 00:18:38 2024 +0000 |
committer | CQ Bot <fuchsia-internal-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Nov 05 00:18:38 2024 +0000 |
tree | 662a1d0d8755ca76673ce1c6c56982efa29f9476 | |
parent | 6af723da38d4e3ca058e1efc2e3183ccd1e301d2 [diff] |
[async][runtime] Adds an API to handle boot time in TestExecutor fakes - Adds functions that allow reading and setting the fake boot time when running the test executor in fake time. - Adds functions to adjust the offset between the fake boot time and the fake monotonic time. I think maintaining a settable offset is the easiest way to use this API compared vs having arbitrary settable clocks for both timelines. For example, a fixed offset allows waking all the necessary timers. Furthermore, this emulates what happens in reality: boot clock will drift from the monotonic clock when the device suspends, and in between suspends, the offset between the readings will be constant. Bug: 376770637 Change-Id: Idadb7a9617f456cf29bf26fc8a867bb8e5583a48 Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1150415 Reviewed-by: Adam Perry <adamperry@google.com> Commit-Queue: Filip Filmar <fmil@google.com> Fuchsia-Auto-Submit: Filip Filmar <fmil@google.com>
Fuchsia is an open source, general purpose operating system supporting modern 64-bit Intel and ARM processors.
We expect everyone interacting with our project to respect our code of conduct.
Read more about Fuchsia's principles.
See Getting Started.
See fuchsia.dev.