public class MidiBtleTimeTracker extends Object
Modifier and Type | Field and Description |
---|---|
static long |
NANOS_PER_MILLI |
Constructor and Description |
---|
MidiBtleTimeTracker(long now) |
Modifier and Type | Method and Description |
---|---|
long |
convertTimestampToNanotime(int timestamp,
long now) |
int |
getWindowMillis() |
void |
setWindowMillis(int window) |
public static final long NANOS_PER_MILLI
public long convertTimestampToNanotime(int timestamp, long now)
timestamp
- 13-bit millis in range of 0 to 8191now
- current time in nanosecondspublic int getWindowMillis()
public void setWindowMillis(int window)