MCPcopy
hub / github.com/rqlite/rqlite / recordDuration

Function recordDuration

db/db.go:136–138  ·  view source on GitHub ↗
(stat string, startT time.Time)

Source from the content-addressed store, hash-verified

134}
135
136func recordDuration(stat string, startT time.Time) {
137 stats.Get(stat).(*expvar.Int).Set(time.Since(startT).Milliseconds())
138}
139
140// ResetStats resets the expvar stats for this module. Mostly for test purposes.
141func ResetStats() {

Callers 4

CheckpointMethod · 0.70
OpenWithDriverFunction · 0.70
CheckpointWithTimeoutMethod · 0.70

Calls 2

GetMethod · 0.65
SetMethod · 0.45

Tested by

no test coverage detected