MCPcopy Create free account
hub / github.com/divan/txqr / TotalTimeMs

Method TotalTimeMs

mobile/decode.go:105–111  ·  view source on GitHub ↗

TotalTimeMs returns the total scan duration in milliseconds.

()

Source from the content-addressed store, hash-verified

103
104// TotalTimeMs returns the total scan duration in milliseconds.
105func (d *Decoder) TotalTimeMs() int64 {
106 if d.start.IsZero() {
107 return 0
108 }
109 dur := time.Since(d.start)
110 return int64(dur / time.Millisecond)
111}
112
113// Reset resets decoder, preparing it for the next run.
114func (d *Decoder) Reset() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected