public abstract class JvmPlatformUtils extends PlatformUtils
Constructor and Description |
---|
JvmPlatformUtils() |
Modifier and Type | Method and Description |
---|---|
long |
currentTimeMillis()
Platform independent version of
System.currentTimeMillis() |
ZlibStream |
decompress(byte[] compressedData)
Returns a
ZlibStream to decompress data |
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, getUpdatesThisSecond, 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
public ZlibStream decompress(byte[] compressedData)
PlatformUtils
ZlibStream
to decompress datadecompress
in class PlatformUtils
compressedData
- The compressed data as a byte arrayZlibStream
instance