feat: add TrackFuncTime in datetime package

This commit is contained in:
dudaodong committed 2024-09-06 15:51:56 +08:00
1 parent c3372e18b1
commit 5e3337a52e
5 files changed
+115 -5

No files matched your search

+9
View File
@@ -410,3 +410,12 @@ func TestTimestamp(t *testing.T) {
ts4 := TimestampNano()
t.Log(ts4)
}
func TestTrackFuncTime(t *testing.T) {
defer TrackFuncTime(time.Now())()
var n int
for i := 0; i < 5000000; i++ {
n++
}
}