MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / duration

Method duration

graphlite/src/txn/state.rs:234–237  ·  view source on GitHub ↗

Get transaction duration

(&self)

Source from the content-addressed store, hash-verified

232
233 /// Get transaction duration
234 pub fn duration(&self) -> std::time::Duration {
235 let end_time = self.end_time.unwrap_or_else(SystemTime::now);
236 end_time.duration_since(self.start_time).unwrap_or_default()
237 }
238
239 /// Get current sequence number
240 pub fn get_sequence_number(&self) -> u64 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected