Libraryless. Click here for Pure Java version (3217L/18K).
sclass TimeTaker { volatile long nanos; void start { nanos = nanos(); } long elapsedNanos() { ret nanos()-nanos; } S renderMicroseconds() { long nanos = elapsedNanos(); ret main renderMicroseconds(nanosToMicroseconds(nanos)); } }
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx
No comments. add comment
Snippet ID: | #1032102 |
Snippet name: | TimeTaker |
Eternal ID of this version: | #1032102/3 |
Text MD5: | 55d766e364b47c6d79ff87a11f69db48 |
Transpilation MD5: | 05a33259f20a30af50b70c81b44bb9fe |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-08-11 15:23:59 |
Source code size: | 283 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 164 / 304 |
Version history: | 2 change(s) |
Referenced in: | #1034167 - Standard Classes + Interfaces (LIVE, continuation of #1003674) |