MCPcopy Create free account
hub / github.com/apache/datafusion / timer

Method timer

datafusion/physical-expr-common/src/metrics/value.rs:214–219  ·  view source on GitHub ↗

return a scoped guard that adds the amount of time elapsed between its creation and its drop or call to `stop` to the underlying metric.

(&self)

Source from the content-addressed store, hash-verified

212 /// between its creation and its drop or call to `stop` to the
213 /// underlying metric.
214 pub fn timer(&self) -> ScopedTimerGuard<'_> {
215 ScopedTimerGuard {
216 inner: self,
217 start: Some(Instant::now()),
218 }
219 }
220
221 /// Get the number of nanoseconds record by this Time metric
222 pub fn value(&self) -> usize {

Callers 15

poll_nextMethod · 0.80
poll_nextMethod · 0.80
push_batchMethod · 0.80
poll_next_implMethod · 0.80
stream_limitMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80
poll_next_innerMethod · 0.80
batch_projectMethod · 0.80
poll_nextMethod · 0.80
newMethod · 0.80
newMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected