Back to project page DolphinOES.
The source code is released under:
Apache License
If you think the Android project DolphinOES listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.sidereal.dolphinoes.architecture.core; /* w w w . ja va2s.co m*/ import com.badlogic.gdx.Gdx; public class Time implements Configurable { float timeScale; float timeInScene; float timeInGame; float deltaTime; public Time() { timeScale = 1; timeInGame = timeInScene = 0; } public float getDeltaTime() { return deltaTime * timeScale; } public float getRealDeltaTime() { return deltaTime; } public float getTimeScale() { return timeScale; } public void setTimeScale(float timeScale) { this.timeScale = timeScale; } public float getTimeInScene() { return 0; } public float getTimeInGame() { return 0; } @Override public void create() {} @Override public void update() { deltaTime = Gdx.graphics.getDeltaTime(); timeInGame += Gdx.graphics.getDeltaTime(); timeInScene += Gdx.graphics.getDeltaTime(); } @Override public void configure(DolphinOESConfiguration cfg) {} }