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)

1  
svoid benchOnce(S msg, Runnable r) {
2  
  long time = sysNow();
3  
  callF(r);
4  
  done2_always(msg, time);
5  
}
6  
7  
svoid benchOnce(Runnable r) {
8  
  benchOnce(str(r), r);
9  
}

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: 187 / 224
Version history: 1 change(s)
Referenced in: [show references]