NOTE: I am a noob at coding.
I am trying to make a certain task in my application run after a certain amount of time one (for example) I want Console.WriteLine("Hello delay");
to run 180 seconds after Console.WriteLine("Hello World!");
is run, how would I do that?
I have not tried anything else yet.
using System;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
// I want (Console.WriteLine("Hello delay");) to run
// 180 seconds after (Console.WriteLine("Hello World!");) is run
Console.WriteLine("Hello delay");
}
}
}