Crates.io | std-embedded-time |
lib.rs | std-embedded-time |
version | 0.1.0 |
source | src |
created_at | 2021-08-20 11:41:03.021081 |
updated_at | 2021-08-20 11:41:03.021081 |
description | Implementation of embedded-time Clocks using std::time |
homepage | |
repository | https://github.com/quartiq/std-embedded-time |
max_upload_size | |
id | 439956 |
size | 9,022 |
Provides an
embedded-time::Clock
using [std::time
] so that embedded-time
can eaisly be used in on-host testing.
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);
}