예제 #1
0
        public TimeSpan DoQuery(out Response response)
        {
            var stopWatch = new Stopwatch();

            stopWatch.Start();
            _workloadSimulator.RunWorkNoLoad(_staticRunTimeInMilliseconds);
            var ip = _possibleIps[_random.Next(_possibleIps.Count)];

            response = _nameResolver.GetNameFromIp(ip);
            stopWatch.Stop();
            return(stopWatch.Elapsed);
        }