(ms)
| 7033 | |
| 7034 | // 1 unit of expiration time represents 10ms. |
| 7035 | function msToExpirationTime(ms) { |
| 7036 | // Always add an offset so that we don't clash with the magic number for NoWork. |
| 7037 | return (ms / UNIT_SIZE | 0) + MAGIC_NUMBER_OFFSET; |
| 7038 | } |
| 7039 | |
| 7040 | function expirationTimeToMs(expirationTime) { |
| 7041 | return (expirationTime - MAGIC_NUMBER_OFFSET) * UNIT_SIZE; |
no outgoing calls
no test coverage detected