TotalTimeMs returns the total scan duration in milliseconds.
()
| 103 | |
| 104 | // TotalTimeMs returns the total scan duration in milliseconds. |
| 105 | func (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. |
| 114 | func (d *Decoder) Reset() { |
nothing calls this directly
no outgoing calls
no test coverage detected