com.badlogic.gdx.utils
Class TimeUtils

java.lang.Object
  extended by 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

Constructor Summary
TimeUtils()
           
 
Method Summary
static long millis()
           
static long nanoTime()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeUtils

public TimeUtils()
Method Detail

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.