Skip to main content

new

Function new 

Source
pub fn new() -> Result<Histogram<u64>, CreationError>
Expand description

One per-task latency histogram. Use this constructor, or [Histogram::new_from] on a histogram it built, because the bounds matter for accuracy.

§Errors

The [CreationError] hdrhistogram returns for the driver’s bounds.