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, markUpdateEndpublic long nanoTime()
PlatformUtilsSystem.nanoTime()nanoTime in class PlatformUtilsSystem.nanoTime()public long currentTimeMillis()
PlatformUtilsSystem.currentTimeMillis()currentTimeMillis in class PlatformUtilsSystem.currentTimeMillis()public long getTotalMemory()
PlatformUtilsgetTotalMemory in class PlatformUtilspublic long getAvailableMemory()
PlatformUtilsgetAvailableMemory in class PlatformUtilspublic long getUsedMemory()
PlatformUtilsgetUsedMemory in class PlatformUtils