Help with code

  • Thread starter Thread starter Extra Account
  • Start date Start date
E

Extra Account

Guest
Hello,

I am new to Visual Studios C# and I am trying to write a code that describes a process of a machine. I want to add a 4-5 second delay after one of the WriteLine messages and a count down timer. I was wondering how I would do that? (I am using .NET framework in Visual Studios C#)

Here is a rough sample of my code:

Console.WriteLine("Motor initiating...Please wait...");

//Add 4-5 second delay before next message pops up

Console.WriteLine("Motor On. Please wait 60 seconds...");

//Add countdown timer from 60 seconds. Once timer ends, display next message.

Console.Writeline("Motor off. Opening Release valve...");



Thanks in advance.

Continue reading...
 
Back
Top