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

Method stop

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

Stop the timer timing and record the time taken

(&mut self)

Source from the content-addressed store, hash-verified

326impl ScopedTimerGuard<'_> {
327 /// Stop the timer timing and record the time taken
328 pub fn stop(&mut self) {
329 if let Some(start) = self.start.take() {
330 self.inner.add_elapsed(start)
331 }
332 }
333
334 /// Restarts the timer recording from the current time
335 pub fn restart(&mut self) {

Callers 3

doneMethod · 0.45
dropMethod · 0.45

Calls 2

add_elapsedMethod · 0.80
takeMethod · 0.45

Tested by 1