emulinker
Toggle table of contents
1.0.2
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
emulinker
emulinker
/
org.emulinker.kaillera.model
/
UserData
User
Data
class
UserData
(
frameDurationNs
:
Duration
,
val
totalDriftCache
:
TimeOffsetCache
,
var
receivedDataNs
:
Long
=
0
,
var
totalDrift
:
Duration
=
Duration.ZERO
,
var
lagLeeway
:
Duration
=
Duration.ZERO
)
Members
Constructors
User
Data
Link copied to clipboard
constructor
(
frameDurationNs
:
Duration
,
totalDriftCache
:
TimeOffsetCache
,
receivedDataNs
:
Long
=
0
,
totalDrift
:
Duration
=
Duration.ZERO
,
lagLeeway
:
Duration
=
Duration.ZERO
)
Properties
lag
Leeway
Link copied to clipboard
var
lagLeeway
:
Duration
received
Data
Ns
Link copied to clipboard
var
receivedDataNs
:
Long
total
Drift
Link copied to clipboard
var
totalDrift
:
Duration
total
Drift
Cache
Link copied to clipboard
val
totalDriftCache
:
TimeOffsetCache
windowed
Lag
Link copied to clipboard
val
windowedLag
:
Duration
Functions
calculate
Lag
For
User
Link copied to clipboard
fun
calculateLagForUser
(
nowNs
:
Long
,
lastFrameNs
:
Long
)
reset
Link copied to clipboard
fun
reset
(
)