com.badlogic.gdx.utils
Class TimeUtils
java.lang.Object
com.badlogic.gdx.utils.TimeUtils
public class TimeUtils
- extends Object
Wrapper around System.nanoTime() and System.currentTimeMillis(). Use this if you want to be compatible across all platforms!
- Author:
- mzechner
TimeUtils
public TimeUtils()
nanoTime
public static long nanoTime()
- Returns:
- The current value of the system timer, in nanoseconds.
millis
public static long millis()
- Returns:
- the difference, measured in milliseconds, between the current time and midnight, January 1, 1970 UTC.
Copyright © 2013. All Rights Reserved.