# Csharp Uptime Application

Published:

Here’s a C# console application for Windows that displays the uptime at a command prompt. Just type ‘uptime’ from the location of the executable. I was suprised how little code this took. The zip file includes the Visual Studio project. In my case it’s Microsoft Visual C# 2005 Express Edition Beta 2. I didn’t have to search long, the key code to this program was found on .NET 24/7. Example output follows…

Uptime is 5 day(s), 3 hour(s), 3 minute(s) and 0 second(s).