diff options
Diffstat (limited to 'embassy-time/src/lib.rs')
| -rw-r--r-- | embassy-time/src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/embassy-time/src/lib.rs b/embassy-time/src/lib.rs index a90368d59..a0f6e3824 100644 --- a/embassy-time/src/lib.rs +++ b/embassy-time/src/lib.rs | |||
| @@ -52,6 +52,7 @@ const fn gcd(a: u64, b: u64) -> u64 { | |||
| 52 | 52 | ||
| 53 | pub(crate) const GCD_1K: u64 = gcd(TICK_HZ, 1_000); | 53 | pub(crate) const GCD_1K: u64 = gcd(TICK_HZ, 1_000); |
| 54 | pub(crate) const GCD_1M: u64 = gcd(TICK_HZ, 1_000_000); | 54 | pub(crate) const GCD_1M: u64 = gcd(TICK_HZ, 1_000_000); |
| 55 | pub(crate) const GCD_1G: u64 = gcd(TICK_HZ, 1_000_000_000); | ||
| 55 | 56 | ||
| 56 | #[cfg(feature = "defmt-timestamp-uptime")] | 57 | #[cfg(feature = "defmt-timestamp-uptime")] |
| 57 | defmt::timestamp! {"{=u64:us}", Instant::now().as_micros() } | 58 | defmt::timestamp! {"{=u64:us}", Instant::now().as_micros() } |
