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: | 708 / 717 |
Referenced in: | #1004631 - done_always - print elapsed time & msg, even if elapsed time is very small #1006288 - done2 - print elapsed time (expects parameter taken from sysNow()) #1006654 - Standard functions list 2 (LIVE, continuation of #761) |