1 | static long done_always(long startTime, S desc) { |
2 | long time = now()-startTime; |
3 | print(desc + " [" + time + " ms]"); |
4 | ret time; |
5 | } |
6 | |
7 | static long done_always(S desc, long startTime) { |
8 | ret done_always(startTime, desc); |
9 | } |
10 | |
11 | static long done_always(long startTime) { |
12 | ret done_always(startTime, ""); |
13 | } |
14 | |
15 | svoid done_always(S desc) { |
16 | print(desc + " [" + lastTiming() + " ms]"); |
17 | } |
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: | 611 / 617 |
Version history: | 2 change(s) |
Referenced in: | [show references] |