Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
public void runNonAsyncWorkers()
{
long startTime = System.currentTimeMillis();
LOGGER.info(" start of executing all non async workers ");
for (int round = 0; round < 5; round++) {
nonAsyncWorker.execute();
}
LOGGER.info("Non Async workers: total execution time [" + ((System.currentTimeMillis() - startTime))/1000 + "] seconds");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment