MCPcopy Index your code
hub / github.com/RustCV/RustCV / stop

Method stop

rustcv/src/core/tick_meter.rs:36–43  ·  view source on GitHub ↗

停止计时 (Stop) 停止后,时间会累积到 total_time 中,且计数器 +1

(&mut self)

Source from the content-addressed store, hash-verified

34 /// 停止计时 (Stop)
35 /// 停止后,时间会累积到 total_time 中,且计数器 +1
36 pub fn stop(&mut self) {
37 if let Some(start) = self.start_time {
38 let elapsed = start.elapsed();
39 self.total_time += elapsed;
40 self.counter += 1;
41 self.start_time = None; //以此标记为停止状态
42 }
43 }
44
45 /// 重置秒表 (Reset)
46 pub fn reset(&mut self) {

Callers 1

newMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected