MCPcopy Create free account
hub / github.com/beanshell/beanshell / measureConcurrentTime

Method measureConcurrentTime

tests/junitTests/src/bsh/TestUtil.java:76–80  ·  view source on GitHub ↗

Measure the time of concurrent executions of the provided runnable instance - the first error or runtime exceptions during execution is populated to the caller. The provided runnable is executed taskCount iterationCount times.

(final Runnable runnable, final int threadCount, final int taskCount, final int iterationCount)

Source from the content-addressed store, hash-verified

74 * times.
75 */
76 public static long measureConcurrentTime(final Runnable runnable, final int threadCount, final int taskCount, final int iterationCount) throws InterruptedException {
77 final long duration = _measureConcurrentTime(runnable, threadCount, taskCount, iterationCount);
78 cleanUp();
79 return duration;
80 }
81
82
83 static long _measureConcurrentTime(final Runnable runnable, final int threadCount, final int taskCount, final int iterationCount) throws InterruptedException {

Callers 3

multi_threadedMethod · 0.95

Calls 2

cleanUpMethod · 0.95

Tested by

no test coverage detected