MCPcopy Create free account
hub / github.com/erans/pgsqlite / get_average_load_time_ms

Method get_average_load_time_ms

src/cache/lazy_schema_loader.rs:281–288  ·  view source on GitHub ↗

Get average load time

(&self)

Source from the content-addressed store, hash-verified

279
280 /// Get average load time
281 pub fn get_average_load_time_ms(&self) -> f64 {
282 let stats = self.stats.read().unwrap();
283 if stats.schemas_loaded > 0 {
284 stats.total_load_time_ms as f64 / stats.schemas_loaded as f64
285 } else {
286 0.0
287 }
288 }
289}
290
291

Callers 1

Calls 1

readMethod · 0.80

Tested by

no test coverage detected