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

9
LINES

< > BotCompany Repo | #1024223 // benchOnce - run block once, print how long it took

JavaX fragment (include)

svoid benchOnce(S msg, Runnable r) {
  long time = sysNow();
  callF(r);
  done2_always(msg, time);
}

svoid benchOnce(Runnable r) {
  benchOnce(str(r), r);
}

Author comment

Began life as a copy of #1024185

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1024223
Snippet name: benchOnce - run block once, print how long it took
Eternal ID of this version: #1024223/2
Text MD5: 7074e2c00829824e936959f8b73b3352
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-28 12:22:56
Source code size: 166 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 186 / 223
Version history: 1 change(s)
Referenced in: [show references]