add 5 minutes delay in c# code example
Example 1: C# 1 minute delay
DateTime now = DateTime.Now;
while (DateTime.Now.Subtract(now).Seconds < 60)
{
// wait for 60 seconds
}
// 60 seconds passed, continue
Example 2: c# timer 30 seconds
this.timer1.Interval = 30000; //30 seconds