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).

!7

compact module CPUBurner > DynSingleFunctionWithPrintLog {
  double seconds = 60.0;
  
  void doIt {
    dm_action("Burning 1 core for " + n2(seconds, "second") + "...", r {
      burnCPUForNSeconds(seconds);
      print("Done!");
    });
  }
}

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: 384 / 14110
Version history: 2 change(s)
Referenced in: