json-joy
Version:
Collection of libraries for building collaborative editing apps.
18 lines (17 loc) • 487 B
JavaScript
/**
* Relative timestamp, which can be decoded give a table
* of clocks. Session index specifies clock indes in the table.
*/
export class RelativeTimestamp {
sessionIndex;
timeDiff;
/**
*
* @param sessionIndex Index of the clock in clock table.
* @param timeDiff Time difference relative to the clock time from the table.
*/
constructor(sessionIndex, timeDiff) {
this.sessionIndex = sessionIndex;
this.timeDiff = timeDiff;
}
}