presto-main/src/main/java/io/prestosql/execution/QueryStateTimer.java/QueryStateTimer/getResourceWaitingTime
class QueryStateTimer:    public Duration getResourceWaitingTime()
    {
        return getDuration(resourceWaitingTime, beginResourceWaitingNanos);
    }