Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DeadlockCode/n-body
/ check
Method
check
src/loop_limiter.rs:24–27 ·
view source on GitHub ↗
(&mut self)
Source
from the content-addressed store, hash-verified
22
23
impl Checkable for LoopLimiter {
24
fn check(&mut self) {
25
while self.last.elapsed() < self.min_loop_time {}
26
self.last = Instant::now();
27
}
28
}
29
30
impl<T: Checkable> Checkable for Option<T> {
Callers
1
main
Function · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected