public class Timer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
float |
elapsedPartialTicks
How much time has elapsed since the last tick, in ticks (range: 0.0 - 1.0).
|
int |
elapsedTicks
How many full ticks have turned over since the last call to updateTimer(), capped at 10.
|
private long |
field_74285_i |
private double |
lastHRTime
The time reported by the high-resolution clock at the last call of updateTimer(), in seconds
|
private long |
lastSyncHRClock
The time reported by the high-resolution clock at the last sync, in milliseconds
|
private long |
lastSyncSysClock
The time reported by the system clock at the last sync, in milliseconds
|
float |
renderPartialTicks
How much time has elapsed since the last tick, in ticks, for use by display rendering routines (range: 0.0 -
1.0).
|
(package private) float |
ticksPerSecond
The number of timer ticks per second of real time
|
float |
timerSpeed
A multiplier to make the timer (and therefore the game) go faster or slower.
|
private double |
timeSyncAdjustment
A ratio used to sync the high-resolution clock to the system clock, updated once per second
|
Constructor and Description |
---|
Timer(float p_i1018_1_) |
Modifier and Type | Method and Description |
---|---|
void |
updateTimer()
Updates all fields of the Timer using the current time
|
float ticksPerSecond
private double lastHRTime
public int elapsedTicks
public float renderPartialTicks
public float timerSpeed
public float elapsedPartialTicks
private long lastSyncSysClock
private long lastSyncHRClock
private long field_74285_i
private double timeSyncAdjustment