public abstract class LibgdxPlatformUtils extends JvmPlatformUtils
| Constructor and Description |
|---|
LibgdxPlatformUtils() |
| Modifier and Type | Method and Description |
|---|---|
void |
exit(boolean ignorePlatformRestrictions)
Exits the game
|
java.lang.String |
timestampToDateFormat(long millis,
java.lang.String format)
Converts a timestamp to the specified date format
|
currentTimeMillis, decompress, getAvailableMemory, getTotalMemory, getUsedMemory, nanoTimecancelPerformanceMode, enablePerformanceMode, getAverageFrameDuration, getAverageFrameInterval, getAverageInterpolateDuration, getAverageRenderDuration, getAverageUpdateDuration, getFramesPerSecond, getMaxFrameDuration, getMaxInterpolateDuration, getMaxRenderDuration, getMaxUpdateDuration, getUpdatesPerSecond, getUpdatesThisSecond, isGameThread, markFrameBegin, markFrameEnd, markInterpolateBegin, markInterpolateEnd, markRenderBegin, markRenderEnd, markUpdateBegin, markUpdateEndpublic void exit(boolean ignorePlatformRestrictions)
PlatformUtilsexit in class PlatformUtilsignorePlatformRestrictions - exit even if platform rules don't permit exiting programmatically. Should be
used only for debug purposes and always set to false for release builds.public java.lang.String timestampToDateFormat(long millis,
java.lang.String format)
PlatformUtilstimestampToDateFormat in class PlatformUtilsmillis - The timestamp (in millis) to convertformat - The date format (e.g. yyyy-MM-dd HH:mm:ss)