we're ready for tenants

This commit is contained in:
2025-12-19 13:48:48 +08:00
parent b20abbe803
commit afc9904651
4 changed files with 22 additions and 7 deletions

View File

@@ -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
}