MCPcopy Create free account
hub / github.com/OpenSourcePhysics/osp / wrappedFI

Method wrappedFI

src/test/Derivative.java:97–106  ·  view source on GitHub ↗
(DoubleUnaryOperator wrappedFirst, boolean report)

Source from the content-addressed store, hash-verified

95 }
96
97 private static void wrappedFI(DoubleUnaryOperator wrappedFirst, boolean report) {
98 System.gc();
99 double result = 0;
100 long t0 = System.currentTimeMillis();
101 for (int i = 1; i < 1000000; i++)
102 result += wrappedFirst.applyAsDouble(i);
103 if (report)
104 System.out.println("Wrapped: .........." + result + "........................" + (System.currentTimeMillis() - t0));
105
106 }
107
108 public static void main(String[] args) {
109

Callers 1

mainMethod · 0.95

Calls 3

gcMethod · 0.80
applyAsDoubleMethod · 0.80
printlnMethod · 0.65

Tested by

no test coverage detected