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

10
LINES

< > BotCompany Repo | #1012926 // returnTimeFor - instant profiling

JavaX fragment (include)

static long returnTimeFor(int n, O f) {
  long time = sysNow();
  for i to n:
    callF(f);
  ret ratio(sysNow()-time, n);
}

static long returnTimeFor(Runnable f) {
  ret returnTimeFor(1, f);
}

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: #1012926
Snippet name: returnTimeFor - instant profiling
Eternal ID of this version: #1012926/2
Text MD5: 1cb580e495f573cfbb4b694f7a640363
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-08-04 14:32:15
Source code size: 203 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 402 / 447
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)