Libraryless. Click here for Pure Java version (2587L/16K).
sclass MBPrinter { new Var<Long> lastMBs; void get(long value) { long mbs = value/oneMegabyte(); if (setVar_trueIfChanged(lastMBs, mbs)) print(mbs + " MB"); } }
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: | 186 / 457 |
Referenced in: | #1034167 - Standard Classes + Interfaces (LIVE, continuation of #1003674) |