MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / TestFastTime_Unix

Function TestFastTime_Unix

internal/utils/fasttime/time_fast_test.go:12–18  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

10)
11
12func TestFastTime_Unix(t *testing.T) {
13 for i := 0; i < 5; i++ {
14 var now = fasttime.Now()
15 t.Log(now.Unix(), now.UnixMilli(), "real:", time.Now().Unix())
16 time.Sleep(1 * time.Second)
17 }
18}
19
20func TestFastTime_UnixMilli(t *testing.T) {
21 t.Log(fasttime.Now().UnixMilliString())

Callers

nothing calls this directly

Calls 4

NowFunction · 0.92
LogMethod · 0.80
UnixMethod · 0.80
UnixMilliMethod · 0.80

Tested by

no test coverage detected