Libraryless. Click here for Pure Java version (3002L/17K).
1 | svoid warmUp(double seconds default defaultWarmUpSeconds(), Runnable f) { |
2 | if (f == null) ret; |
3 | long endTime = sysNow()+toMS(seconds); |
4 | while (sysNow() < endTime) |
5 | f.run(); |
6 | } |
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1026096 |
Snippet name: | warmUp - call function for a while to compile it |
Eternal ID of this version: | #1026096/4 |
Text MD5: | 3e97ec86c72a2f5864a894c99cd16f8f |
Transpilation MD5: | 4bf9579f4e134eca44e656597c914b36 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-08-11 04:38:59 |
Source code size: | 185 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 228 / 309 |
Version history: | 3 change(s) |
Referenced in: | [show references] |