Gets the number of milliseconds elapsed since the system started.
using System; class Sample { public static void Main() { int result = Environment.TickCount & Int32.MaxValue; Console.WriteLine("TickCount: {0}", result); } }