<StephenD[m]>
In rtic is there a simple way to create some kind of timer or time structure?
<StephenD[m]>
Basically I want to track how long it's been since a certain event has happened
Ekho has joined #rust-embedded
<StephenD[m]>
aha! looks like monotonics::now() is what I was missing
Ekho has quit [Quit: CORE ERROR, SYSTEM HALTED.]
Ekho has joined #rust-embedded
Ekho has quit [Quit: CORE ERROR, SYSTEM HALTED.]
Ekho has joined #rust-embedded
crabbedhaloablut has joined #rust-embedded
kenny has quit [Quit: WeeChat 4.0.4]
nex8192 has left #rust-embedded [Error from remote client]
kenny has joined #rust-embedded
emerent has quit [Ping timeout: 258 seconds]
emerent has joined #rust-embedded
duderonomy has quit [Read error: Connection reset by peer]
duderonomy has joined #rust-embedded
nex8192 has joined #rust-embedded
notgull has quit [Ping timeout: 255 seconds]
notgull has joined #rust-embedded
<ryan-summers[m]>
Is there a way to `write!()` into a `&mut [u8]` and then get the resulting size of the formatted bytes? The `embedded_io::Write` trait doesn't seem to do that because it ends up returning a `Result<(), _>`