()
| 15094 | let _scrollsdkMinTimeIncrement = 0.000000000001 |
| 15095 | class AbstractParticle { |
| 15096 | _getProcessTimeInMilliseconds() { |
| 15097 | // We add this loop to restore monotonically increasing .now(): |
| 15098 | // https://developer.mozilla.org/en-US/docs/Web/API/Performance/now |
| 15099 | let time = performance.now() |
| 15100 | while (time <= _scrollsdkLatestTime) { |
| 15101 | if (time === time + _scrollsdkMinTimeIncrement) |
| 15102 | // Some browsers have different return values for perf.now() |
| 15103 | _scrollsdkMinTimeIncrement = 10 * _scrollsdkMinTimeIncrement |
| 15104 | time += _scrollsdkMinTimeIncrement |
| 15105 | } |
| 15106 | _scrollsdkLatestTime = time |
| 15107 | return time |
| 15108 | } |
| 15109 | } |
| 15110 | var FileFormat |
| 15111 | ;(function (FileFormat) { |
no outgoing calls
no test coverage detected