Now reports the current time.
()
| 52 | |
| 53 | // Now reports the current time. |
| 54 | func (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 | // |
no outgoing calls