Environment.TickCount
using System; class MainClass { public static void Main() { Console.WriteLine("Ticks since startup : " + Environment.TickCount); } }