static long done_always(long startTime, S desc) { long time = now()-startTime; print(desc + " [" + time + " ms]"); ret time; } static long done_always(S desc, long startTime) { ret done_always(startTime, desc); } static long done_always(long startTime) { ret done_always(startTime, ""); } svoid done_always(S desc) { print(desc + " [" + lastTiming() + " ms]"); }
Began life as a copy of #1003960
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1004631 |
Snippet name: | done_always - print elapsed time & msg, even if elapsed time is very small |
Eternal ID of this version: | #1004631/3 |
Text MD5: | 94192495bca71f9e5c8afccbebf2302c |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-07-10 15:09:24 |
Source code size: | 393 bytes / 17 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 612 / 617 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |