MCPcopy Index your code
hub / github.com/EngoEngine/engo / FPS

Method FPS

clock.go:86–88  ·  view source on GitHub ↗

FPS is the amount of frames per second, computed every time a tick occurs at least a second after the previous update

()

Source from the content-addressed store, hash-verified

84
85// FPS is the amount of frames per second, computed every time a tick occurs at least a second after the previous update
86func (c *Clock) FPS() float32 {
87 return float32(c.perSecond)
88}
89
90// Time is the number of seconds the clock has been running
91func (c *Clock) Time() float32 {

Callers 2

TestClockFPSFunction · 0.95
DisplayStringMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestClockFPSFunction · 0.76