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

16
LINES

< > BotCompany Repo | #1003960 // done - print elapsed time

JavaX fragment (include)

1  
static int done_minPrint = 10;
2  
3  
static long done(long startTime, S desc) {
4  
  long time = now()-startTime;
5  
  if (time >= done_minPrint)
6  
    print(desc + " [" + time + " ms]");
7  
  ret time;
8  
}
9  
10  
static long done(S desc, long startTime) {
11  
  ret done(startTime, desc);
12  
}
13  
14  
static long done(long startTime) {
15  
  ret done(startTime, "");
16  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, ekrmjmnbrukm, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1003960
Snippet name: done - print elapsed time
Eternal ID of this version: #1003960/1
Text MD5: ec4a3313d4ce7a277cf98d86ce91d3dc
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-08-24 15:00:14
Source code size: 343 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 605 / 619
Referenced in: [show references]