MCPcopy Create free account
hub / github.com/RustCV/RustCV / reset

Method reset

rustcv/src/core/tick_meter.rs:46–50  ·  view source on GitHub ↗

重置秒表 (Reset)

(&mut self)

Source from the content-addressed store, hash-verified

44
45 /// 重置秒表 (Reset)
46 pub fn reset(&mut self) {
47 self.start_time = None;
48 self.total_time = Duration::new(0, 0);
49 self.counter = 0;
50 }
51
52 /// 获取当前的 FPS (Frames Per Second)
53 /// 公式:次数 / 总耗时

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected