构造函数
()
| 17 | impl TickMeter { |
| 18 | /// 构造函数 |
| 19 | pub fn new() -> Self { |
| 20 | Self { |
| 21 | start_time: None, |
| 22 | total_time: Duration::new(0, 0), |
| 23 | counter: 0, |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | /// 开始计时 (Start) |
| 28 | pub fn start(&mut self) { |
nothing calls this directly
no outgoing calls
no test coverage detected