Libraryless. Click here for Pure Java version (2678L/17K).
1 | sclass WithDuration<A> extends Var<A> { |
2 | double seconds; |
3 | |
4 | *() {} |
5 | *(double *seconds, A value) { super(value); } |
6 | *(A value) { this(now(), value); } |
7 | |
8 | double seconds() { ret seconds; } |
9 | |
10 | toString { ret "[" + formatElapsedTimeWithAppropriateUnit(seconds) + "] " + super.toString(); } |
11 | } |
Began life as a copy of #1026686
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: | #1029452 |
Snippet name: | WithDuration |
Eternal ID of this version: | #1029452/2 |
Text MD5: | e9e4d191efd0d2ae50254fc58c73cc18 |
Transpilation MD5: | 8b13d8937bafeb00674565db608ae8a2 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-08-08 15:17:37 |
Source code size: | 306 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 234 / 523 |
Version history: | 1 change(s) |
Referenced in: | [show references] |