MCPcopy Index your code
hub / github.com/dnote/dnote / Now

Method Now

pkg/clock/clock.go:50–54  ·  view source on GitHub ↗

Now returns the current time

()

Source from the content-addressed store, hash-verified

48
49// Now returns the current time
50func (c *Mock) Now() time.Time {
51 c.mu.RLock()
52 defer c.mu.RUnlock()
53 return c.currentTime
54}
55
56// New returns an instance of a real clock
57func New() Clock {

Callers 1

TestUpdateBookFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestUpdateBookFunction · 0.76