static int done2_systemErr_minPrint = 10; static long done2_systemErr(long startTime, S desc) { long time = sysNow()-startTime; if (time >= done2_systemErr_minPrint) System.err.println(desc + " [" + time + " ms]"); ret time; } static long done2_systemErr(S desc, long startTime) { ret done2_systemErr(startTime, desc); } static long done2_systemErr(long startTime) { ret done2_systemErr(startTime, ""); }
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: | 528 / 530 |
Referenced in: | [show references] |