static long returnTimeFor(int n, O f) { long time = sysNow(); for i to n: callF(f); ret ratio(sysNow()-time, n); } static long returnTimeFor(Runnable f) { ret returnTimeFor(1, f); }
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: | #1012926 |
Snippet name: | returnTimeFor - instant profiling |
Eternal ID of this version: | #1012926/2 |
Text MD5: | 1cb580e495f573cfbb4b694f7a640363 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-08-04 14:32:15 |
Source code size: | 203 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 501 / 543 |
Version history: | 1 change(s) |
Referenced in: | [show references] |