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

Method consume_time

src/time.rs:47–55  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

45 }
46
47 pub fn consume_time(&mut self) -> bool {
48 let ready = self.accumulated_time >= self.target_time;
49
50 if ready {
51 self.accumulated_time -= self.target_time;
52 }
53
54 ready
55 }
56
57 pub fn delta(&self) -> Duration {
58 self.target_time

Callers 1

runMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected