1 | static void busySleepSeconds(double seconds) { |
2 | long end = sysNow()+toMS(seconds); |
3 | while (sysNow() < end) ping(); |
4 | } |
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: | #1008565 |
Snippet name: | busySleepSeconds - busy-sleep for a number of seconds (don't use this but for testing) |
Eternal ID of this version: | #1008565/2 |
Text MD5: | 66c5dd665550473948b13680b210988c |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-05-23 20:57:41 |
Source code size: | 121 bytes / 4 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 438 / 477 |
Version history: | 1 change(s) |
Referenced in: | [show references] |