|
GF4J 0.9.4 Beta | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gameframe.engines.msjava4x.CTimer
Microsoft Java VM specific implementation of the timer. Uses the win32 multimedia timer function (winmm.dll function call timeGetTime()) to calculate the time. Resolution of this timer is 1 ms under Win95/98 and 5 ms under WinNT.
Field Summary | |
private EngineFactory |
m_engineFactory
The engine factory that created this timer. |
private int |
m_lastTime
The time from last invocation of calculateTime() method. |
Constructor Summary | |
(package private) |
CTimer(EngineFactory engineFactory)
Constructs a Microsoft Java VM specific timer. |
Method Summary | |
float |
calculateTime()
When invoked calculates the time that has expired since the last invokation in milliseconds. |
void |
finalize()
Releases all resources used by the timer object. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private int m_lastTime
private EngineFactory m_engineFactory
Constructor Detail |
CTimer(EngineFactory engineFactory)
Method Detail |
public float calculateTime()
calculateTime
in interface Timer
public void finalize()
finalize
in interface Timer
finalize
in class java.lang.Object
|
GF4J 0.9.4 Beta | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |