package main
import (
"fmt"
"time"
)
func testTime() {
start := time.Now() // 擷取目前時間
sum := 0
for i := 0; i < 80000000; i++ {
sum++
}
elapsed := time.Since(start)
fmt.Println("該函數執行完成耗時:", elapsed)
}
func main() {
testTime()
}