[−][src]Trait metrics_core::AsNanoseconds
Used to do a nanosecond conversion.
This trait allows us to interchangably accept raw integer time values, ones already in
nanoseconds, as well as the more conventional Duration
which is a result of getting the
difference between two Instant
s.