/** * Creates monotonically-increasing timestamps regardless of the precision and monoticity of the system clock. */ export default class Timestamp { private lastTime; private inSystemTimeBackoffPeriod; /** * Creates a new timestamp with the given characteristics. */ getStamp(): number; /** * Ensures that the current stamp is at least as late as the given stamp, * used to ensure monotonic increases after synchronizing with other systems. */ update(t: number): void; /** * Force the use of system time on the next call, even if a timer says we should back off. */ useSystemTimeNext(): void; }