Returns the maximum amount of memory available to ImageJ or zero if ImageJ is unable to determine this limit.
()
| 1025 | /** Returns the maximum amount of memory available to ImageJ or |
| 1026 | zero if ImageJ is unable to determine this limit. */ |
| 1027 | public static long maxMemory() { |
| 1028 | if (maxMemory==0L) { |
| 1029 | Memory mem = new Memory(); |
| 1030 | maxMemory = mem.getMemorySetting(); |
| 1031 | if (maxMemory==0L) maxMemory = mem.maxMemory(); |
| 1032 | } |
| 1033 | return maxMemory; |
| 1034 | } |
| 1035 | |
| 1036 | public static void showTime(ImagePlus imp, long start, String str) { |
| 1037 | showTime(imp, start, str, 1); |