From 8458d41fa234b9c63149debef519763f103b735b Mon Sep 17 00:00:00 2001 From: tenngo Date: Tue, 18 Jul 2023 10:57:07 +0000 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E9=80=80=20'Pull=20Request=20!350=20:?= =?UTF-8?q?=20go=E7=9A=84=E5=A5=87=E6=80=AA=E5=BE=AA=E7=8E=AF'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lanle.go | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 lanle.go diff --git a/lanle.go b/lanle.go deleted file mode 100644 index 9e26f35..0000000 --- a/lanle.go +++ /dev/null @@ -1,37 +0,0 @@ -package main - -import ( - "fmt" - "runtime" - "time" -) - -var count uint - -func main() { - for { - q := time.Now() - runtime.GC() - p := time.Now().Format("15时02分05秒") - count++ - fmt.Printf("%v:什么%v什么\n", p, count) - qs := time.Now() - qsf := time.Now().Sub(qs) - fmt.Printf("这是个文本%v\n", qsf) - fmt.Printf( - "%v:B:啊?\n", - time.Now().Format("15时02分05秒"), - ) - runtime.GC() - qf := time.Now().Sub(q) - fmt.Println("花费时间", qf) - time.Sleep(time.Second) - for { - runtime.Gosched() - fmt.Printf("%v -> 分配完毕", time.Now().Format("15-02-05")) - time.Sleep(time.Microsecond * 666) //卡在这个for循环了 - - } - } - -} -- Gitee