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)

static int done_minPrint = 10;

static long done(long startTime, S desc) {
  long time = now()-startTime;
  if (time >= done_minPrint)
    print(desc + " [" + time + " ms]");
  ret time;
}

static long done(S desc, long startTime) {
  ret done(startTime, desc);
}

static long done(long startTime) {
  ret done(startTime, "");
}

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