please include function evalWithTimeout. // returns pair(# running, # timed out) static Pair<Int> evalWithTimeout_numberOfCalculations() { int all = l(evalWithTimeout_allThreads); int inTime = l(evalWithTimeout_inTime); ret pair(all, max(0, all-inTime)); }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1011599 |
Snippet name: | evalWithTimeout_numberOfCalculations |
Eternal ID of this version: | #1011599/1 |
Text MD5: | c732682612b957f0d1295e7ebf5b7211 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-10-31 23:51:45 |
Source code size: | 270 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 467 / 474 |
Referenced in: | [show references] |