MCPcopy Create free account
hub / github.com/DeadlockCode/n-body / LoopLimiter

Class LoopLimiter

src/loop_limiter.rs:3–6  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1use std::time::{Instant, Duration};
2
3pub struct LoopLimiter {
4 last: Instant,
5 min_loop_time: Duration,
6}
7
8impl LoopLimiter {
9 #[allow(dead_code)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected