jjdh.opengl.core.counter
Class FixedTimeCounter
java.lang.Object
jjdh.opengl.core.counter.AbstractFrameCounter
jjdh.opengl.core.counter.FixedTimeCounter
- All Implemented Interfaces:
- FrameCounter
public class FixedTimeCounter
- extends AbstractFrameCounter
resolution
protected long resolution
startTime
protected long startTime
FixedTimeCounter
public FixedTimeCounter()
FixedTimeCounter
public FixedTimeCounter(int milliseconds)
FixedTimeCounter
public FixedTimeCounter(long resolution,
TimeUnit timeUnit)
addOneFrame
public void addOneFrame()
- Description copied from interface:
FrameCounter
- Notifies this counter that another frame was drawn.
- Specified by:
addOneFrame
in interface FrameCounter
- Specified by:
addOneFrame
in class AbstractFrameCounter
detailedToString
public String detailedToString()
- Specified by:
detailedToString
in interface FrameCounter
- Overrides:
detailedToString
in class AbstractFrameCounter
- Returns:
- a detailed textual description of the current frame rate
Copyright © 2006 Jonas Jacobi and Dennis Heidsiek. All Rights Reserved.