Skip to content

Commit

Permalink
Add conversion to/from core::time::Duration
Browse files Browse the repository at this point in the history
  • Loading branch information
PTaylor-us committed Jun 22, 2020
1 parent 0e38c7a commit 8fbd422
Show file tree
Hide file tree
Showing 4 changed files with 257 additions and 104 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ hardware and work with _clocks_, _instants_, _durations_, _periods_, and _freque
- `Clock` trait allowing abstraction of hardware timers for timekeeping.
- Work with time using _milliseconds_, _seconds_, _hertz_, etc. rather than _cycles_ or _ticks_.
- Includes example for the nRF52_DK board
- Conversion to/from core::time::Duration

## License
This project is licensed under either of
Expand Down
1 change: 1 addition & 0 deletions crates-io.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ hardware and work with _clocks_, _instants_, _durations_, _periods_, and _freque
- `Clock` trait allowing abstraction of hardware timers for timekeeping.
- Work with time using _milliseconds_, _seconds_, _hertz_, etc. rather than _cycles_ or _ticks_.
- Includes example for the nRF52_DK board
- Conversion to/from core::time::Duration

## Motivation
The handling of time on embedded systems is generally much different than that of OSs. For instance, on an OS, the time is measured against an arbitrary epoch. Embedded systems generally don't know (nor do they care) what the *real* time is, but rather how much time has passed since the system has started.
Expand Down
Loading

0 comments on commit 8fbd422

Please sign in to comment.