@Override
    public void update() {
        tpf = (getTime() - previousTime) * (1.0f / TIMER_RESOLUTION);
        if (tpf >= 0.2) {
            // The frame lasted more than 200ms, so we erase its time to 16ms.
            tpf = 0.016666f;
        } else {
            fps = 1.0f / tpf;
        }
        previousTime = getTime();
    }
Returns the time in seconds. The timer starts
at 0.0 seconds.

@return the current time in seconds
jme3-examples/src/main/java/jme3test/model/anim/EraseTimer.java