patch time: Duration, Timer

This commit is contained in:
xushiwei
2024-07-09 14:24:48 +08:00
parent b64775772b
commit 06bd748bd6
5 changed files with 716 additions and 18 deletions

11
_demo/timedur/timedur.go Normal file
View File

@@ -0,0 +1,11 @@
package main
import (
"fmt"
"time"
)
func main() {
t := time.Now().Add(time.Second * 5)
fmt.Println(time.Until(t))
}