Hello, I want to execute bunch of stored procedures in a loop in a windows C# application. Each SP executes for over a minute. User will be interested in how long each process takes and I wanted to display real elapsed time while executing SP. I tried below code and it doesn't show real elapsed time instead final time took to execute. Please help.
private void Process()
Dictionary<string, int> spData = new Dictionary<string, int>;
foreach(KeyValuePair<string, string>k in formData)
Stopwatch stopWatch = new Stopwatch();
ExeccuteSP(k.Key); //Key has SP Name and gets executed in ExecuteSP function
long duration = stopWatch.ElapsedMilliseconds;
Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.