(ms)
| 11275 | var MAGIC_NUMBER_OFFSET = Batched - 1; // 1 unit of expiration time represents 10ms. |
| 11276 | |
| 11277 | function msToExpirationTime(ms) { |
| 11278 | // Always subtract from the offset so that we don't clash with the magic number for NoWork. |
| 11279 | return MAGIC_NUMBER_OFFSET - (ms / UNIT_SIZE | 0); |
| 11280 | } |
| 11281 | function expirationTimeToMs(expirationTime) { |
| 11282 | return (MAGIC_NUMBER_OFFSET - expirationTime) * UNIT_SIZE; |
| 11283 | } |
no outgoing calls
no test coverage detected