[−][src]Crate nyx
Provides functionality for finding the throughput of iterators, readers, and writers.
Examples
Add this to Cargo.toml
:
[dependencies]
nyx = "0.1"
And this to main.rs
:
use std::io; fn main() { io::copy(&mut nyx::read::stdout(io::repeat(0)), &mut io::sink()).unwrap(); }
This will write the amount of bytes copied per second to stdout
in one second intervals.
28.06 GiB/s
29.34 GiB/s
30.06 GiB/s
29.33 GiB/s
Modules
iter | Adapter functions for iterators. |
read | Adapter functions for readers. |
write | Adapter functions for writers. |
Structs
Bps | Bytes per second with expected formatting. |
Functions
get | Gets the update interval for the current thread. |
set | Sets the update interval for the current thread. |