Search in sources :

Example 1 with FpsTimerTask

use of com.tencent.wstt.gt.api.utils.FpsTimerTask in project GT by Tencent.

the class DefaultParaRunEngine method runFps.

private synchronized void runFps() {
    if (Env.API >= 14) {
        fps_gather = true;
        if (!hasCheckSu) {
            thread = new Thread(new CheckSuRunnable(), "CheckSu");
            thread.setDaemon(true);
            thread.start();
        }
        // 因为这个Timer是延时执行,所以基本能赶上su判断线程出结果
        fpsTimer40 = new Timer();
        fpsTimer40.schedule(new FpsTimerTask(), 0, GTIntervalSettingActivity.msecond_FPS);
    }
}
Also used : Timer(java.util.Timer) FpsTimerTask(com.tencent.wstt.gt.api.utils.FpsTimerTask)

Aggregations

FpsTimerTask (com.tencent.wstt.gt.api.utils.FpsTimerTask)1 Timer (java.util.Timer)1