nl_tokens: A timestamp generator that guarantees monotonically increasing timestamps and logs warnings when timestamps drift in the future . <p > {
pl_tokens: function MonotonicTimestampGenerator ( warningThreshold , minLogInterval ) { if ( warningThreshold < 0 ) { throw <mask> errors . ArgumentError ( 'warningThreshold can not be lower than 0' ) ; } this . _warningThreshold = warningThreshold || 1000 ; this . _minLogInterval = 1000 ; if ( typeof minLogInterval === 'number' ) { // A value under 1 will disable logging this . _minLogInterval = minLogInterval ; } this . _micros = - 1 ; this . _lastDate = 0 ; this . _lastLogDate = 0 ; }