MCPcopy
hub / github.com/fogleman/nes / StepSeconds

Method StepSeconds

nes/console.go:69–74  ·  view source on GitHub ↗
(seconds float64)

Source from the content-addressed store, hash-verified

67}
68
69func (console *Console) StepSeconds(seconds float64) {
70 cycles := int(CPUFrequency * seconds)
71 for cycles > 0 {
72 cycles -= console.Step()
73 }
74}
75
76func (console *Console) Buffer() *image.RGBA {
77 return console.PPU.front

Callers 2

testRomFunction · 0.95
UpdateMethod · 0.80

Calls 1

StepMethod · 0.95

Tested by

no test coverage detected