-
Notifications
You must be signed in to change notification settings - Fork 0
/
ShowEnvironmentStuff.cs
28 lines (26 loc) · 1010 Bytes
/
ShowEnvironmentStuff.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*---------------------------------------------------------------------*/
// ShowEnvironmentStuff.cs 2023 by alvachon
// OS: Ubuntu | Text Editor: vim | .NET Framework: Mono
// Tutorial: .NET Book Zero by Charles Petzold
/*---------------------------------------------------------------------*/
using System;
namespace Alvachon.ShowEnvironmentStuff
{
class ShowEnvironmentStuff
{
static void Main()
{
int msec;
Console.WriteLine("My Documents is actually " +
Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments));
Console.WriteLine();
msec = Environment.TickCount;
Console.WriteLine("Windows has been running for " +
msec + " milliseconds");
Console.WriteLine("\tor " + msec /3600000.0 + " hour");
Console.WriteLine();
Console.WriteLine("You are running " + Environment.Version);
Console.WriteLine();
}
}
}