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

14
LINES

< > BotCompany Repo | #1002263 // saveTiming

JavaX fragment (include)

1  
static ThreadLocal<Long> saveTiming_last = new ThreadLocal();
2  
3  
static void saveTiming(long ms) {
4  
  print(ms + " ms");
5  
  saveTiming_noPrint(ms);
6  
}
7  
8  
static void saveTiming_noPrint(long ms) {
9  
  saveTiming_last.set(ms);
10  
}
11  
12  
static ThreadLocal<Long> saveTiming_tl() {
13  
  ret saveTiming_last;
14  
}

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: #1002263
Snippet name: saveTiming
Eternal ID of this version: #1002263/3
Text MD5: 81131b493975b66104d83f78e3f04b8c
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-04-26 17:44:15
Source code size: 299 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 684 / 1541
Version history: 2 change(s)
Referenced in: [show references]