[−][src]Trait ckb_metrics_runtime::Delta
Trait for types that represent time and can be subtracted from each other to generate a delta.
Required methods
pub fn delta(&self, other: Self) -> u64
[src]
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.