|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.monkeycoder.monkeynes.hardware.HighResolutionTimer
This is a hardware component representing the timing circuit in the NES.
Originally part of the MonkeyNES project.
| Constructor Summary | |
HighResolutionTimer(long inClockSpeed)
Creates a new HighResolutionTimer at the specified speed. |
|
| Method Summary | |
long |
getClocksPast()
Gets how many cycles have elapsed since the last this this function was called. |
long |
getClockSpeed()
Gets the speed of this timer. |
boolean |
isRunning()
Returns whether or not this timer is running. |
void |
setClockSpeed(long inClockSpeed)
Sets the speed of this timer to the specified speed. |
void |
startClock()
Starts this timer. |
void |
stopClock()
Stops this timer. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public HighResolutionTimer(long inClockSpeed)
inClockSpeed - The speed of this timer in Hz.| Method Detail |
public void setClockSpeed(long inClockSpeed)
inClockSpeed - The speed of this timer in Hz.public long getClockSpeed()
public void startClock()
public void stopClock()
public boolean isRunning()
public long getClocksPast()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||