The property StartTimein the type Processreturns this value:
Process.GetCurrentProcess().StartTime
This, of course, can be used to pick up the start time of other processes:
Process p = Process.GetProcessesByName("Notepad").FirstOrDefault();
if (p != null)
{
Console.WriteLine(p.StartTime);
}
source
share