tweaks to metrics/
This commit is contained in:
parent
74062e58c1
commit
73a3eb988f
|
@ -22,7 +22,7 @@ opt-level = 3
|
|||
lto = true
|
||||
|
||||
[dependencies]
|
||||
metrics-core = "^0.2"
|
||||
metrics-core = { path = "../metrics-core", version = "^0.2" }
|
||||
crossbeam-channel = "^0.3"
|
||||
parking_lot = "^0.7"
|
||||
fnv = "^1.0"
|
||||
|
|
|
@ -97,9 +97,9 @@ impl Sink {
|
|||
)
|
||||
}
|
||||
|
||||
/// Reference to the internal high-speed clock interface.
|
||||
pub fn clock(&self) -> &Clock {
|
||||
&self.clock
|
||||
/// Gets the current time, in nanoseconds, from the internal high-speed clock.
|
||||
pub fn now(&self) -> u64 {
|
||||
self.clock.now()
|
||||
}
|
||||
|
||||
/// Records the count for a given metric.
|
||||
|
|
Loading…
Reference in New Issue