simple_time 0.0.2

A simple time i128 nano-second precision time library
Documentation
  • Coverage
  • 100%
    19 out of 19 items documented0 out of 13 items with examples
  • Size
  • Source code size: 5.44 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.66 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • cosmos/cosmos-sdk
    6951 4153 164
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • aaronc tac0turtle julienrbrt

A very simple, no_std friendly time library for Rust that provides:

  • a Time type that wraps an i128 representing nanoseconds since the Unix epoch
  • a Duration type that wraps an i128 representing a number of nanoseconds
  • const fn math operations for Time and Duration, plus basic core::ops trait implementations

Any conversion to calendar time and parsing and formatting of date/time strings should be accomplished with other libraries. This library just supports very simple high precision time calculations and nothing more.