MCPcopy Index your code
hub / github.com/AI45Lab/Code / new

Method new

core/src/telemetry.rs:99–104  ·  view source on GitHub ↗
(span_field: &'static str)

Source from the content-addressed store, hash-verified

97
98impl TimedSpan {
99 pub fn new(span_field: &'static str) -> Self {
100 Self {
101 start: Instant::now(),
102 span_field,
103 }
104 }
105
106 pub fn elapsed_ms(&self) -> u64 {
107 self.start.elapsed().as_millis() as u64

Callers

nothing calls this directly

Calls 1

nowFunction · 0.85

Tested by

no test coverage detected