FutureTask<Long> plainFutureTask = new FutureTask<>(new Callable<Long>() {
@Override
public Long call() throws Exception {
Stopwatch stopwatch = new Stopwatch();
stopwatch.start();
serverSocket.startServer();
stopwatch.stop();
return stopwatch.elapsedTime(TimeUnit.SECONDS);
}
});