| 1 | use std::time::{Duration, Instant}; |
| 2 | |
| 3 | pub struct Timer { |
| 4 | start_time: Instant, |
| 5 | last_time: Instant, |
| 6 | accumulated_time: Duration, |
| 7 | target_time: Duration, |
| 8 | max_lag: Duration, |
| 9 | } |
| 10 | |
| 11 | impl Timer { |
| 12 | pub fn new(tick_rate: f64) -> Timer { |
nothing calls this directly
no outgoing calls
no test coverage detected