protected void terminated()
    {
        try
        {
            log.info(String.format("Terminated: avg time=%dns", totalTime.get() / numTasks.get()));
        }
        catch (Exception e)
        {
            // TODO: handle exception
        }
    }