MCPcopy
hub / github.com/duke-git/lancet / Watcher

Struct Watcher

function/watcher.go:7–11  ·  view source on GitHub ↗

Watcher is used for record code excution time Play: https://go.dev/play/p/l2yrOpCLd1I

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected