Libraryless. Click here for Pure Java version (4143L/24K).
1 | // returns result of function |
2 | static <A> A benchForSeconds(double n, S desc default str(f), IF0<A> f) { |
3 | ret benchForNSeconds(n, desc, f); |
4 | } |
5 | |
6 | sO benchForSeconds(double n, S desc default str(r), Runnable r) { |
7 | ret benchForNSeconds(n, desc, runnableToIF0(r)); |
8 | } |
9 | |
10 | // returns minimal time needed |
11 | static long benchForSeconds(S desc default str(r), Runnable r, double n) { |
12 | ret benchForNSeconds(desc, r, n); |
13 | } |
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1033241 |
Snippet name: | benchForSeconds - synonym of benchForNSeconds |
Eternal ID of this version: | #1033241/4 |
Text MD5: | e87fab2142028cc7f258bfc6bd1597ab |
Transpilation MD5: | 247981a7523ea354a1f6dcc554912743 |
Author: | someone |
Category: | |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-10-16 08:28:15 |
Source code size: | 418 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 163 / 237 |
Version history: | 3 change(s) |
Referenced in: | [show references] |