MCPcopy Create free account
hub / github.com/microsoft/SandDance / msToExpirationTime

Function msToExpirationTime

docs/external/js/react-dom.development.js:11277–11280  ·  view source on GitHub ↗
(ms)

Source from the content-addressed store, hash-verified

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 }

Callers 2

getCurrentTimeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected