we're ready for tenants
This commit is contained in:
@@ -17,8 +17,9 @@ func NewClock() (c *Clock) {
|
||||
// Restart resets the start time.
|
||||
// It also returns the elapsed time.
|
||||
func (c *Clock) Restart() (t time.Duration) {
|
||||
t = time.Since(c.t)
|
||||
c.t = time.Now()
|
||||
now := time.Now()
|
||||
t = now.Sub(c.t)
|
||||
c.t = now
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user