Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

8
LINES

< > BotCompany Repo | #1011599 // evalWithTimeout_numberOfCalculations

JavaX fragment (include)

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: 469 / 476
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1012363 - evalWithTimeout_calculations