You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of printing a raw Duration, and until knurling-rs/defmt#911 is resolved, we could print "{=u64:tus}", duration.as_micros() as u64. It would look nicer in the logs.
The text was updated successfully, but these errors were encountered:
Or we could rely on the timestamp support built into defmt, and show people how to pass a log-format that prints timestamps.
That involves looking at defmt-decoder to see what log formats it has built in (and at probe-rs to see what log formats it supports by default), and then putting a better default in our .cargo/config.toml file's runner line. And of course implementing defmt::timestamp using dk::uptime(), or some new function dk::uptime_as_microseconds() which might help avoid some unnecessary multiplication and division.
Instead of printing a raw
Duration
, and until knurling-rs/defmt#911 is resolved, we could print"{=u64:tus}", duration.as_micros() as u64
. It would look nicer in the logs.The text was updated successfully, but these errors were encountered: