Back to project page misty.
The source code is released under:
MIT License
If you think the Android project misty 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.misty.debug; //from w w w .j a v a 2 s . c o m import android.util.Log; public class FPS { private static long framesStart = System.nanoTime(); private static int frames = 0; public static void log(long currentTime) { FPS.frames++; if ((currentTime - FPS.framesStart) > 1E9) { Log.e("DEBUG", "FPS: " + FPS.frames); FPS.frames = 0; FPS.framesStart = System.nanoTime(); } } }