libgdx API

com.badlogic.gdx.utils
Class TimeUtils

java.lang.Object
  extended by com.badlogic.gdx.utils.TimeUtils

public class TimeUtils
extends java.lang.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
clone, equals, finalize, 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.

libgdx API

Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)