https://github.com/simonit/embassy-embedded-time
https://github.com/simonit/embassy-embedded-time
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/simonit/embassy-embedded-time
- Owner: SimonIT
- License: mit
- Created: 2025-08-15T13:55:14.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-08-16T15:57:45.000Z (10 months ago)
- Last Synced: 2025-08-16T17:23:30.830Z (10 months ago)
- Language: Rust
- Size: 7.81 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# embassy-embedded-time
Provides an
[`embedded-time::Clock`](https://docs.rs/embedded-time/latest/embedded_time/clock/trait.Clock.html)
using [`embassy_time`] so that `embedded-time` can easily be used with [embassy](https://embassy.dev/).
### Usage
It's extremely straight-forward to start using a clock:
```rust
use embassy_embedded_time::EmbassyClock;
use embedded_time::Clock;
fn main() {
let clock = EmbassyClock::default();
let now = clock.try_now().unwrap();
println!("Current time: {:?}", now);
}
```