Skip to content

Commit 5371a08

Browse files
committed
Changed the time parameter names to "realTime" to better
indicate what those inputs mean.
1 parent 6eb82b2 commit 5371a08

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/main/java/com/simsilica/sim/SimTime.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ public class SimTime {
5454
public SimTime() {
5555
}
5656

57-
public void update( long time ) {
57+
public void update( long realTime ) {
5858
if( frame == 0 ) {
59-
baseTime = time;
59+
baseTime = realTime;
6060
}
61-
time -= baseTime;
61+
realTime -= baseTime;
6262
frame++;
63-
tpf = (time - this.time) * timeScale;
64-
this.time = time;
63+
tpf = (realTime - this.time) * timeScale;
64+
this.time = realTime;
6565
}
6666

6767
/**
@@ -73,8 +73,8 @@ public void update( long time ) {
7373
* is not locked to frames, usually as part of providing matching accurate
7474
* timesource information to something else that is trying to synch.
7575
*/
76-
public long getUnlockedTime( long time ) {
77-
return time - baseTime;
76+
public long getUnlockedTime( long realTime ) {
77+
return realTime - baseTime;
7878
}
7979

8080
public long toSimTime( double seconds ) {

0 commit comments

Comments
 (0)