static long stopTiming_defaultMin = 10; static long startTiming_startTime; static void startTiming() { startTiming_startTime = now(); } static void stopTiming() { stopTiming(null); } static void stopTiming(S text) { stopTiming(text, stopTiming_defaultMin); } static void stopTiming(S text, long minToPrint) { long time = now()-startTiming_startTime; if (time >= minToPrint) { text = or2(text, "Time: "); print(text + time + " ms"); } }
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1000800 |
Snippet name: | startTiming + stopTiming |
Eternal ID of this version: | #1000800/1 |
Text MD5: | 5e58cc2be3cd51de2ababbab3240eafa |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-08-10 15:03:57 |
Source code size: | 480 bytes / 22 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 697 / 3314 |
Referenced in: | #1002427 - Accellerating 629 (SPIKE) #1004052 - Test findFunctionDefs #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1008143 - Test findFullFunctionDefs |