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

17
LINES

< > BotCompany Repo | #1032780 // bench1sec - synonym of benchFor1Second

JavaX fragment (include)

1  
// returns minimal time needed
2  
static long bench1sec(S desc, Runnable r) {
3  
  ret benchFor1Second(desc, r);
4  
}
5  
6  
7  
8  
static long bench1sec(Runnable r) {
9  
  ret benchFor1Second(r);
10  
}
11  
12  
13  
14  
// returns result of function
15  
static <A> A bench1sec(S desc default str(f), IF0<A> f) {
16  
  ret benchFor1Second(desc, f);
17  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1032780
Snippet name: bench1sec - synonym of benchFor1Second
Eternal ID of this version: #1032780/1
Text MD5: 7a0b6744c190c3c7bcef5da1f252a42a
Author: someone
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-06 03:55:51
Source code size: 306 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 180 / 196
Referenced in: [show references]