public abstract class JvmPlatformUtils extends PlatformUtils
Constructor and Description |
---|
JvmPlatformUtils() |
Modifier and Type | Method and Description |
---|---|
long |
currentTimeMillis()
Platform independent version of
System.currentTimeMillis() |
long |
getAvailableMemory()
Gets the total memory available for the game
|
long |
getTotalMemory()
Gets the total memory that can be used by the game
|
long |
getUsedMemory()
Gets the total memory used by the game
|
long |
nanoTime()
Platform independent version of
System.nanoTime() |
exit, getAverageRenderDuration, getAverageUpdateDuration, getFramesPerSecond, getUpdatesPerSecond, isGameThread, markFrame, markRenderBegin, markRenderEnd, markUpdateBegin, markUpdateEnd
public long nanoTime()
PlatformUtils
System.nanoTime()
nanoTime
in class PlatformUtils
System.nanoTime()
public long currentTimeMillis()
PlatformUtils
System.currentTimeMillis()
currentTimeMillis
in class PlatformUtils
System.currentTimeMillis()
public long getTotalMemory()
PlatformUtils
getTotalMemory
in class PlatformUtils
public long getAvailableMemory()
PlatformUtils
getAvailableMemory
in class PlatformUtils
public long getUsedMemory()
PlatformUtils
getUsedMemory
in class PlatformUtils