MCPcopy Create free account
hub / github.com/EngoEngine/engo / TestTheTimerNow

Function TestTheTimerNow

clock_test.go:103–109  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

101}
102
103func TestTheTimerNow(t *testing.T) {
104 theTimer = realTime{}
105 res := time.Now().UnixNano() - theTimer.Now()
106 if res < -1000000 { //this is an arbitrary choice, could be smaller or larger depending on machine testing on
107 t.Error("theTimer when it's a realTime did not produce time.Now().UnixNano()")
108 }
109}
110
111func TestClockPause(t *testing.T) {
112 clock := NewClock()

Callers

nothing calls this directly

Calls 2

NowMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected