snor 0.1.1

Wrapper to standard library sleep functionality.
Documentation
  • Coverage
  • 100%
    5 out of 5 items documented1 out of 5 items with examples
  • Size
  • Source code size: 3.88 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.07 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • marshblocker/snor
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • marshblocker

Snor

Wrapper to standard library sleep functionality.

Why

I find myself always needing the sleep functionality given by the standard library, but I always need to search how it works, so I made this to make my life easier (not that it contributes much).

Usage

In Cargo.toml:

[dependencies]
snor = "0.1.1"

Used in a crate as:

use snor;

// Sleep for 10 seconds.
snor::sleep_sec(10);

// Sleep for 100 milliseconds.
snor::sleep_ms(100);

// Sleep for 1000 microseconds.
snor::sleep_micros(1000);

//Sleep for 10000 nanoseconds.
snor::sleep_nanos(10000);