1 | static long returnTimeFor(int n, O f) { |
2 | long time = sysNow(); |
3 | for i to n: |
4 | callF(f); |
5 | ret ratio(sysNow()-time, n); |
6 | } |
7 | |
8 | static long returnTimeFor(Runnable f) { |
9 | ret returnTimeFor(1, f); |
10 | } |
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: | 502 / 544 |
Version history: | 1 change(s) |
Referenced in: | [show references] |