tweaks to metrics/

This commit is contained in:
Toby Lawrence 2019-04-23 14:48:33 -04:00
parent 74062e58c1
commit 73a3eb988f
2 changed files with 4 additions and 4 deletions

View File

@ -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"

View File

@ -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.