MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / _Yc

Function _Yc

vm/ByteCodeTranslator/src/javascript/parparvm_runtime.js:3651–3661  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3649const __cn1TickStride = 256;
3650let __cn1TickCounter = 0;
3651function _Yc() {
3652 if (++__cn1TickCounter < __cn1TickStride) return false;
3653 __cn1TickCounter = 0;
3654 if (jvm.__cn1ClinitDepth) return false;
3655 const now = (typeof global.performance !== "undefined" && global.performance
3656 && typeof global.performance.now === "function")
3657 ? global.performance.now() : Date.now();
3658 if ((now - __cn1TickStartedAt) < __cn1TickBudgetMs) return false;
3659 __cn1TickStartedAt = now;
3660 return true;
3661}
3662global._Yc = _Yc;
3663global._Yv = _Yv;
3664// Top-level 2-char globals for the ~15k ``jvm.*`` call sites in

Callers 12

cn1_iv0Function · 0.85
cn1_iv1Function · 0.85
cn1_iv2Function · 0.85
cn1_iv3Function · 0.85
cn1_iv4Function · 0.85
cn1_ivNFunction · 0.85
_dv0Function · 0.85
_dv1Function · 0.85
_dv2Function · 0.85
_dv3Function · 0.85
_dv4Function · 0.85
_dvNFunction · 0.85

Calls 1

nowMethod · 0.45

Tested by

no test coverage detected