Libraryless. Click here for Pure Java version (3217L/18K).
1 | sclass TimeTaker {
|
2 | volatile long nanos; |
3 | |
4 | void start {
|
5 | nanos = nanos(); |
6 | } |
7 | |
8 | long elapsedNanos() {
|
9 | ret nanos()-nanos; |
10 | } |
11 | |
12 | S renderMicroseconds() {
|
13 | long nanos = elapsedNanos(); |
14 | ret main renderMicroseconds(nanosToMicroseconds(nanos)); |
15 | } |
16 | } |
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: | 445 / 657 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |