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

4
LINES

< > BotCompany Repo | #1035217 // timedFor5 - better than benchFor5 because result and timing are returned (important for "black-holing" the result)

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (8015L/45K).

1  
// returns minimal time needed
2  
static <A> Timed<A> timedFor5(S desc default str(f), IF0<A> f) {
3  
  ret timedForNSeconds(5, desc, f);
4  
}

Author comment

Began life as a copy of #1035210

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1035217
Snippet name: timedFor5 - better than benchFor5 because result and timing are returned (important for "black-holing" the result)
Eternal ID of this version: #1035217/1
Text MD5: 1e2db5690bc1a2add6c4f32c7fe4d67a
Transpilation MD5: 87175218b498ef81aabf648dea72ed33
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-04-15 18:13:36
Source code size: 136 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 171 / 210
Referenced in: [show references]