1 | static O timedIf(bool b, O f) { |
2 | ret b ? timed(f) : callF(f); |
3 | } |
4 | |
5 | static <A> A timedIf(bool b, F0<A> f) { |
6 | ret b ? timed(f) : callF(f); |
7 | } |
Began life as a copy of #1019487
download show line numbers debug dex old transpilations
Travelled to 10 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1019749 |
Snippet name: | timedIf - show timing if a boolean is true |
Eternal ID of this version: | #1019749/1 |
Text MD5: | d34b3539c0031aa984cba400ae6e0446 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-11-24 17:25:50 |
Source code size: | 144 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 298 / 348 |
Referenced in: | [show references] |