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

12
LINES

< > BotCompany Repo | #1019891 // CPU Burner [simulate CPU load]

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Uses 911K of libraries. Click here for Pure Java version (5967L/31K).

1  
!7
2  
3  
compact module CPUBurner > DynSingleFunctionWithPrintLog {
4  
  double seconds = 60.0;
5  
  
6  
  void doIt {
7  
    dm_action("Burning 1 core for " + n2(seconds, "second") + "...", r {
8  
      burnCPUForNSeconds(seconds);
9  
      print("Done!");
10  
    });
11  
  }
12  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 9 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1019891
Snippet name: CPU Burner [simulate CPU load]
Eternal ID of this version: #1019891/3
Text MD5: 77721c9abcb49e415d3b00c26408de72
Transpilation MD5: 23bf73be891ef47a9fdc8f7b21645e1d
Author: stefan
Category: javax
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-01-03 17:04:11
Source code size: 259 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 385 / 14111
Version history: 2 change(s)
Referenced in: [show references]