Watcher is used for record code excution time Play: https://go.dev/play/p/l2yrOpCLd1I
| 5 | // Watcher is used for record code excution time |
| 6 | // Play: https://go.dev/play/p/l2yrOpCLd1I |
| 7 | type Watcher struct { |
| 8 | startTime int64 |
| 9 | stopTime int64 |
| 10 | excuting bool |
| 11 | } |
| 12 | |
| 13 | // Start the watch timer. |
| 14 | func NewWatcher() *Watcher { |
nothing calls this directly
no outgoing calls
no test coverage detected