diff options
| author | Dániel Buga <[email protected]> | 2025-02-03 17:20:35 +0100 |
|---|---|---|
| committer | Dániel Buga <[email protected]> | 2025-02-03 17:20:35 +0100 |
| commit | 37b180c61eb58515561fb59e0d4fc558cc8d5e53 (patch) | |
| tree | 602f8dcace5532f4b892e5cff379d6b99c02c4ed /embassy-time/src | |
| parent | c65b6db318da7ecbe888a0a66b85d9ffb28106f0 (diff) | |
Allow inlining on time driver boundary
Diffstat (limited to 'embassy-time/src')
| -rw-r--r-- | embassy-time/src/instant.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/embassy-time/src/instant.rs b/embassy-time/src/instant.rs index 909f1b173..cae80e51f 100644 --- a/embassy-time/src/instant.rs +++ b/embassy-time/src/instant.rs | |||
| @@ -17,6 +17,7 @@ impl Instant { | |||
| 17 | pub const MAX: Instant = Instant { ticks: u64::MAX }; | 17 | pub const MAX: Instant = Instant { ticks: u64::MAX }; |
| 18 | 18 | ||
| 19 | /// Returns an Instant representing the current time. | 19 | /// Returns an Instant representing the current time. |
| 20 | #[inline] | ||
| 20 | pub fn now() -> Instant { | 21 | pub fn now() -> Instant { |
| 21 | Instant { | 22 | Instant { |
| 22 | ticks: embassy_time_driver::now(), | 23 | ticks: embassy_time_driver::now(), |
