Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
1
use std::time::{Instant, Duration};
2
3
pub struct LoopLimiter {
4
last: Instant,
5
min_loop_time: Duration,
6
}
7
8
impl LoopLimiter {
9
#[allow(dead_code)]
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected