1 | please include function evalWithTimeout. |
2 | |
3 | // returns pair(# running, # timed out) |
4 | static Pair<Int> evalWithTimeout_numberOfCalculations() { |
5 | int all = l(evalWithTimeout_allThreads); |
6 | int inTime = l(evalWithTimeout_inTime); |
7 | ret pair(all, max(0, all-inTime)); |
8 | } |
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: | 468 / 475 |
Referenced in: | [show references] |