Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

8
LINES

< > BotCompany Repo | #1015925 // Countdown

JavaX fragment (include)

sclass Countdown {
  long endTime;
  
  *() {}
  *(long duration) { endTime = now() + duration; }
  
  bool done() { ret now() >= endTime; }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1015925
Snippet name: Countdown
Eternal ID of this version: #1015925/1
Text MD5: 552d2f85c4aef41b5aef8d398ca31f72
Author: stefan
Category: javax / timing
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-30 21:35:31
Source code size: 149 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 306 / 862
Referenced in: [show references]