GetStep returns the amount that simulated time advances on every call to Now.
()
| 231 | |
| 232 | // GetStep returns the amount that simulated time advances on every call to Now. |
| 233 | func (c *Clock) GetStep() time.Duration { |
| 234 | c.init() |
| 235 | c.mu.Lock() |
| 236 | defer c.mu.Unlock() |
| 237 | return c.step |
| 238 | } |
| 239 | |
| 240 | // SetStep updates the amount that simulated time advances on every call to Now. |
| 241 | func (c *Clock) SetStep(d time.Duration) { |