MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / Add

Method Add

utils/timer/timer.go:42–48  ·  view source on GitHub ↗

Add records a time pivot.

(name string)

Source from the content-addressed store, hash-verified

40
41// Add records a time pivot.
42func (t *Timer) Add(name string) {
43 t.Lock()
44 defer t.Unlock()
45
46 t.names = append(t.names, name)
47 t.pivots = append(t.pivots, time.Now())
48}
49
50// ToLogFields returns analysis results as log fields.
51func (t *Timer) ToLogFields() log.Fields {

Callers 15

TestTimerFunction · 0.95
ApplyMethod · 0.95
FetchMethod · 0.95
followerApplyMethod · 0.95
TestChainFunction · 0.45
NewChainWithContextFunction · 0.45
advanceNextHeightMethod · 0.45
processAddTxReqMethod · 0.45
nowMethod · 0.45
nextTickMethod · 0.45
goFuncMethod · 0.45

Calls

no outgoing calls

Tested by 15

TestTimerFunction · 0.76
TestChainFunction · 0.36
TestRequest_SignFunction · 0.36
TestResponse_SignFunction · 0.36
TestAck_SignFunction · 0.36
TestMultiChainFunction · 0.36
createRandomTimeAfterFunction · 0.36
stopNodesFunction · 0.36
stopNodesFunction · 0.36
TestU256Function · 0.36