1 unstable release
0.1.0 | Aug 20, 2021 |
---|
#2134 in Embedded development
3,335 downloads per month
Used in 6 crates
5KB
std-embedded-time
Provides an
embedded-time::Clock
using std::time
so that embedded-time
can eaisly be used in on-host testing.
Usage
It's extremely straight-forward to start using a clock:
use std_embedded_time::StandardClock;
use embedded_time::Clock;
fn main() {
let clock = StandardClock::default();
let now = clock.try_now().unwrap();
println!("Current time: {:?}", now);
}
Dependencies
~600KB
~11K SLoC