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

Method reset

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

Source from the content-addressed store, hash-verified

40 }
41
42 pub fn reset(&mut self) {
43 self.last_time = Instant::now();
44 self.accumulated_time = Duration::ZERO;
45 }
46
47 pub fn consume_time(&mut self) -> bool {
48 let ready = self.accumulated_time >= self.target_time;

Callers 1

runMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected