MCPcopy Create free account
hub / github.com/17cupsofcoffee/nova / Timer

Class Timer

src/time.rs:3–9  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1use std::time::{Duration, Instant};
2
3pub struct Timer {
4 start_time: Instant,
5 last_time: Instant,
6 accumulated_time: Duration,
7 target_time: Duration,
8 max_lag: Duration,
9}
10
11impl Timer {
12 pub fn new(tick_rate: f64) -> Timer {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected