Package com.biglybt.core.util
Class SystemTime.SteppedProvider
- java.lang.Object
-
- com.biglybt.core.util.SystemTime.SteppedProvider
-
- All Implemented Interfaces:
SystemTime.SystemTimeProvider
- Enclosing class:
- SystemTime
private static class SystemTime.SteppedProvider extends java.lang.Object implements SystemTime.SystemTimeProvider
-
-
Field Summary
Fields Modifier and Type Field Description private int
access_average_per_slice
private int
access_count
private long
currentTimeOffset
private int
drift_adjusted_granularity
private static long
HPC_START
private java.util.concurrent.atomic.AtomicLong
last_approximate_time
private int
slice_access_count
private long
stepped_mono_time
private long
stepped_time
private java.lang.Thread
updater
-
Constructor Summary
Constructors Modifier Constructor Description private
SteppedProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getMonoTime()
long
getSteppedMonoTime()
long
getTime()
-
-
-
Field Detail
-
HPC_START
private static final long HPC_START
-
updater
private final java.lang.Thread updater
-
stepped_time
private volatile long stepped_time
-
currentTimeOffset
private volatile long currentTimeOffset
-
last_approximate_time
private final java.util.concurrent.atomic.AtomicLong last_approximate_time
-
access_count
private volatile int access_count
-
slice_access_count
private volatile int slice_access_count
-
access_average_per_slice
private volatile int access_average_per_slice
-
drift_adjusted_granularity
private volatile int drift_adjusted_granularity
-
stepped_mono_time
private volatile long stepped_mono_time
-
-
Method Detail
-
getTime
public long getTime()
- Specified by:
getTime
in interfaceSystemTime.SystemTimeProvider
-
getMonoTime
public long getMonoTime()
- Specified by:
getMonoTime
in interfaceSystemTime.SystemTimeProvider
-
getSteppedMonoTime
public long getSteppedMonoTime()
- Specified by:
getSteppedMonoTime
in interfaceSystemTime.SystemTimeProvider
-
-