add metrics for tick producer and poh_recorder (#15931)

This commit is contained in:
Jeff Washington (jwash)
2021-03-17 10:38:26 -05:00
committed by GitHub
parent 5460fb10a2
commit 40997d0aef
3 changed files with 69 additions and 29 deletions

View File

@@ -20,6 +20,10 @@ impl Measure {
self.duration = duration_as_ns(&self.start.elapsed());
}
pub fn as_ns(&self) -> u64 {
self.duration
}
pub fn as_us(&self) -> u64 {
self.duration / 1000
}