Libraryless. Click here for Pure Java version (2587L/16K).
1 | sclass MBPrinter { |
2 | new Var<Long> lastMBs; |
3 | |
4 | void get(long value) { |
5 | long mbs = value/oneMegabyte(); |
6 | if (setVar_trueIfChanged(lastMBs, mbs)) |
7 | print(mbs + " MB"); |
8 | } |
9 | } |
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1029153 |
Snippet name: | MBPrinter - prints progress in megabytes |
Eternal ID of this version: | #1029153/1 |
Text MD5: | 21dcec2006f5378f40762ce92e532758 |
Transpilation MD5: | 46b48a43a7d3407104447e7b3460097b |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-07-22 01:40:08 |
Source code size: | 191 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 185 / 457 |
Referenced in: | [show references] |