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

4
LINES

< > BotCompany Repo | #1033346 // currentThreadTotalCPUNanos

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (39L/1K).

// returns -1 when not available
static long currentThreadTotalCPUNanos() {
  ret threadMXBean().getCurrentThreadCpuTime();
}

Author comment

Began life as a copy of #1033098

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1033346
Snippet name: currentThreadTotalCPUNanos
Eternal ID of this version: #1033346/3
Text MD5: a3c532b8d4e787cb05697ae45d511c7f
Transpilation MD5: 4594331aab16d2a1b58a534457098137
Author: stefan
Category: javax / monitoring
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-23 07:10:17
Source code size: 128 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 100 / 135
Version history: 2 change(s)
Referenced in: [show references]