我有以下 Go 代碼用于捕獲經(jīng)過(guò)的時(shí)間:import ( "time")start := time.Now()...end := time.Since(start)log.Printf("Elapsed Time: %s", end)其輸出為:2019/10/26 13:22:53 Elapsed Time : 41.867μs我希望輸出很簡(jiǎn)單:Elapsed Time : 41.867μs不確定如何抑制時(shí)間包默認(rèn)數(shù)據(jù)/時(shí)鐘時(shí)間輸出。
如何在打印經(jīng)過(guò)時(shí)間時(shí)隱藏日期
繁星點(diǎn)點(diǎn)滴滴
2023-07-31 16:03:53