MCPcopy
hub / github.com/EngoEngine/engo / Delta

Method Delta

clock.go:68–73  ·  view source on GitHub ↗

Delta is the amount of seconds between the last tick and the one before that

()

Source from the content-addressed store, hash-verified

66
67// Delta is the amount of seconds between the last tick and the one before that
68func (c *Clock) Delta() float32 {
69 if c.paused {
70 return 0
71 }
72 return float32(float64(c.deltaStamp) / float64(secondsInNano))
73}
74
75// Pause pauses the clock
76func (c *Clock) Pause() {

Callers 9

TestClockDeltaFunction · 0.95
TestClockPauseFunction · 0.95
mobileDrawFunction · 0.80
RunIterationFunction · 0.80
RunIterationFunction · 0.80
RunIterationFunction · 0.80
RunIterationFunction · 0.80
RunIterationFunction · 0.80
RunIterationFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestClockDeltaFunction · 0.76
TestClockPauseFunction · 0.76