Ejemplo n.º 1
0
        public async Task DoAsync(int awaitMills)
        {
            TimeSpan elapsedTime = TimeSpan.Zero;
            await PerformanceHelper.DoAsync(async() => await Task.Delay(awaitMills), ts => elapsedTime = ts);

            Assert.True(elapsedTime.TotalMilliseconds >= awaitMills);
        }