Browse Source

makes hist::C type alias pub

master
Jonathan Strong 6 years ago
parent
commit
ee8c8ebae6
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/hist.rs

+ 1
- 1
src/hist.rs View File

@@ -10,7 +10,7 @@ use hdrhistogram::{Histogram};
use hdrhistogram::serialization::V2DeflateSerializer; use hdrhistogram::serialization::V2DeflateSerializer;
use hdrhistogram::serialization::interval_log::{IntervalLogWriterBuilder, Tag}; use hdrhistogram::serialization::interval_log::{IntervalLogWriterBuilder, Tag};


type C = u64;
pub type C = u64;


pub fn nanos(d: Duration) -> u64 { pub fn nanos(d: Duration) -> u64 {
d.as_secs() * 1_000_000_000_u64 + (d.subsec_nanos() as u64) d.as_secs() * 1_000_000_000_u64 + (d.subsec_nanos() as u64)


Loading…
Cancel
Save