diff options
Diffstat (limited to 'src/java')
-rw-r--r-- | src/java/com/jogamp/common/av/PTS.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/java/com/jogamp/common/av/PTS.java b/src/java/com/jogamp/common/av/PTS.java index 7d6d4fd..0b8a550 100644 --- a/src/java/com/jogamp/common/av/PTS.java +++ b/src/java/com/jogamp/common/av/PTS.java @@ -135,6 +135,8 @@ public final class PTS { public int get(final long currentMillis) { return pts + (int) ( ( currentMillis - scr ) * speed.get() + 0.5f ); } + /** Returns {@link #get(long)} passing {@link Clock#currentMillis()}. */ + public int getCurrent() { return get( Clock.currentMillis() ); } /** Returns {@link #get(long)} as time string representation via {@link #millisToTimeStr(long, boolean)}. */ public String getTimeStr(final long currentMillis, final boolean addFractions) { |