runtime: fix time.Sleep

This commit is contained in:
Li Jie
2025-02-16 19:25:59 +08:00
parent 51755b8da3
commit d91bb33178

View File

@@ -15,7 +15,7 @@ import (
// Sleep pauses the current goroutine for at least the duration d.
// A negative or zero duration causes Sleep to return immediately.
func Sleep(d Duration) {
c.Usleep(c.Uint(d.Nanoseconds()))
c.Usleep(c.Uint(d.Microseconds()))
}
// Interface to timers implemented in package runtime.