Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When did my application start running?

Tags:

winapi

delphi

What is the function to get date and time an application was executed? I'm using Delphi.

like image 963
Peter Turner Avatar asked Nov 12 '09 20:11

Peter Turner


1 Answers

You can use the Windows API call to GetProcessTimes (declared in Windows.pas) to get details for any process.

If it's your application, I would probably get the start time myself and log it somewhere to keep a history.

like image 160
Bruce McGee Avatar answered Sep 23 '22 01:09

Bruce McGee