presto-main/src/main/java/io/prestosql/sql/planner/iterative/IterativeOptimizer.java/Context/checkTimeoutNotExhausted
class Context:        public void checkTimeoutNotExhausted()
        {
            if ((NANOSECONDS.toMillis(System.nanoTime() - startTimeInNanos)) >= timeoutInMilliseconds) {
                throw new PrestoException(OPTIMIZER_TIMEOUT, format("The optimizer exhausted the time limit of %d ms", timeoutInMilliseconds));
            }
        }