Click to See Complete Forum and Search --> : time running?


Dingojoe
May 22nd, 1999, 01:09 AM
is there a way to determine how long your app has been running (oen that youve made) and then sotre it.. so youc an display to the user later how long the application in minutes of seconds or whatever he has had it running?

-joe

?

Gordito Supreme
May 22nd, 1999, 06:31 PM
Use the GetTickCount() API function. The declares for it are in the API viewer I believe. Get a tick count at the beginning and at the end of whatever you are timing ... and subtract them. The tick count resets every 41 days or so ... therefor you need to test if the end count is lower than the begin count in your code and make the proper adjustment.