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

7
LINES

< > BotCompany Repo | #1029289 // dm_benchAndProfileForNSeconds

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (4282L/28K).

svoid dm_benchAndProfileForNSeconds(int seconds, Runnable r) {
  dm_showPoorMansProfile(r { benchForNSeconds(r, seconds) });
}

static <A> A dm_benchAndProfileForNSeconds(int seconds, IF0<A> f) {
  ret dm_showPoorMansProfile(() -> benchForNSeconds(seconds, f));
}

Author comment

Began life as a copy of #1029085

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1029289
Snippet name: dm_benchAndProfileForNSeconds
Eternal ID of this version: #1029289/4
Text MD5: 7dc20d2404e00784a806fed5bed5eeb6
Transpilation MD5: e0d3b069a8182f25c06931c5caab5737
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-30 00:11:19
Source code size: 269 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 202 / 287
Version history: 3 change(s)
Referenced in: [show references]