Transpiled version (2775L) is out of date.
1 | // returns minimal time needed (nanos) |
2 | static long benchFor5Seconds(S desc, Runnable r) { |
3 | ret benchForNSeconds(desc, r, 5); |
4 | } |
5 | |
6 | static long benchFor5Seconds(Runnable r) { |
7 | ret benchFor5Seconds(str(r), r); |
8 | } |
9 | |
10 | // returns result of function |
11 | static <A> A benchFor5Seconds(S desc default str(f), IF0<A> f) { |
12 | benchFor5Seconds(desc, r { f! }); |
13 | ret f!; |
14 | } |
Began life as a copy of #1006403
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1018495 |
Snippet name: | benchFor5Seconds |
Eternal ID of this version: | #1018495/8 |
Text MD5: | 7e73d5cbbae03e01957214c14af9759c |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-04-28 22:34:01 |
Source code size: | 365 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 493 / 701 |
Version history: | 7 change(s) |
Referenced in: | [show references] |