Skip to content

TPSData ​

com.jsmacrosce.jsmacros.client.tick.TPSData

Holds a recorded timestamp and TPS sample.

js
const TPSData = Java.type("com.jsmacrosce.jsmacros.client.tick.TPSData");  
const sample = new TPSData(Date.now(), 20);

Constructors ​

new TPSData ​

new TPSData(long time, double tps)#
Stores the supplied timestamp and TPS sample without computing or validating them.

Parameters:

  • time: sample timestamp in milliseconds since the Unix epoch
  • tps: tick rate in ticks per second

Fields ​

recvTime ​

recvTime: longread-only#
Timestamp in milliseconds since the Unix epoch when the sample was recorded.

tps ​

tps: doubleread-only#
Tick rate in ticks per second; may be an instantaneous or averaged sample.