std-embedded-time 0.1.0

Implementation of embedded-time Clocks using std::time
Documentation
  • Coverage
  • 100%
    2 out of 2 items documented1 out of 2 items with examples
  • Size
  • Source code size: 10.59 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.39 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • quartiq/std-embedded-time
    4 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • jordens ryan-summers

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);
}