feat(bootloader-interface): add support for marking when the menu is being display

This commit is contained in:
2025-10-30 13:27:58 -04:00
parent cc90199d61
commit 9d3a022e08
3 changed files with 18 additions and 2 deletions

View File

@@ -25,6 +25,11 @@ impl BootloaderInterface {
Self::mark_time("LoaderTimeExecUSec", timer)
}
/// Tell the system that Sprout is about to display the menu.
pub fn mark_menu(timer: &PlatformTimer) -> Result<()> {
Self::mark_time("LoaderTimeMenuUsec", timer)
}
/// Tell the system about the current time as measured by the platform timer.
/// Sets the variable specified by `key` to the number of microseconds.
fn mark_time(key: &str, timer: &PlatformTimer) -> Result<()> {