コード例 #1
0
        public IActionResult Get()
        {
            var watch = System.Diagnostics.Stopwatch.StartNew();
            // the code that you want to measure comes here



            var persons = _repo.GetItemsFromCollectionAsync().Result;

            watch.Stop();
            var elapsedMs = watch.ElapsedMilliseconds;

            return(Ok(persons));
        }
        public IActionResult Get()
        {
            var persons = _repo.GetItemsFromCollectionAsync().Result;

            return(Ok(persons));
        }