MCPcopy
hub / github.com/uber-go/zap / Now

Method Now

internal/ztest/clock.go:54–58  ·  view source on GitHub ↗

Now reports the current time.

()

Source from the content-addressed store, hash-verified

52
53// Now reports the current time.
54func (c *MockClock) Now() time.Time {
55 c.mu.RLock()
56 defer c.mu.RUnlock()
57 return c.now
58}
59
60// NewTicker returns a time.Ticker that ticks at the specified frequency.
61//

Callers 2

TestSamplerConcurrentFunction · 0.95
NewTickerMethod · 0.95

Calls

no outgoing calls

Tested by 1

TestSamplerConcurrentFunction · 0.76