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

16
LINES

< > BotCompany Repo | #1006307 // done2_systemErr - print elapsed time on system err (expects parameter taken from sysNow())

JavaX fragment (include)

1  
static int done2_systemErr_minPrint = 10;
2  
3  
static long done2_systemErr(long startTime, S desc) {
4  
  long time = sysNow()-startTime;
5  
  if (time >= done2_systemErr_minPrint)
6  
    System.err.println(desc + " [" + time + " ms]");
7  
  ret time;
8  
}
9  
10  
static long done2_systemErr(S desc, long startTime) {
11  
  ret done2_systemErr(startTime, desc);
12  
}
13  
14  
static long done2_systemErr(long startTime) {
15  
  ret done2_systemErr(startTime, "");
16  
}

Author comment

Began life as a copy of #1006288

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1006307
Snippet name: done2_systemErr - print elapsed time on system err (expects parameter taken from sysNow())
Eternal ID of this version: #1006307/1
Text MD5: 56ca8e2b9e144296e281118611ac15c4
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-12-28 15:08:00
Source code size: 436 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 530 / 532
Referenced in: [show references]