Allow inlining on time driver boundary

This commit is contained in:
Dániel Buga
2025-02-03 17:20:35 +01:00
parent c65b6db318
commit 37b180c61e
2 changed files with 5 additions and 0 deletions

View File

@@ -17,6 +17,7 @@ impl Instant {
pub const MAX: Instant = Instant { ticks: u64::MAX };
/// Returns an Instant representing the current time.
#[inline]
pub fn now() -> Instant {
Instant {
ticks: embassy_time_driver::now(),