[−][src]Trait metrics::Delta
Trait for types that represent time and can be subtracted from each other to generate a delta.
Required methods
fn delta(&self, other: Self) -> u64
Get the delta between this value and another value.
For Instant
, we explicitly return the nanosecond difference. For u64
, we return the
integer difference, but the timescale itself can be whatever the user desires.