aboutsummaryrefslogtreecommitdiff
path: root/embassy-time/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'embassy-time/src/lib.rs')
-rw-r--r--embassy-time/src/lib.rs1
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
53pub(crate) const GCD_1K: u64 = gcd(TICK_HZ, 1_000); 53pub(crate) const GCD_1K: u64 = gcd(TICK_HZ, 1_000);
54pub(crate) const GCD_1M: u64 = gcd(TICK_HZ, 1_000_000); 54pub(crate) const GCD_1M: u64 = gcd(TICK_HZ, 1_000_000);
55pub(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")]
57defmt::timestamp! {"{=u64:us}", Instant::now().as_micros() } 58defmt::timestamp! {"{=u64:us}", Instant::now().as_micros() }