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

7
LINES

< > BotCompany Repo | #1019749 // timedIf - show timing if a boolean is true

JavaX fragment (include)

static O timedIf(bool b, O f) {
  ret b ? timed(f) : callF(f);
}

static <A> A timedIf(bool b, F0<A> f) {
  ret b ? timed(f) : callF(f);
}

Author comment

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: 297 / 347
Referenced in: [show references]