重置秒表 (Reset)
(&mut self)
| 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 | /// 公式:次数 / 总耗时 |
nothing calls this directly
no outgoing calls
no test coverage detected