Timer

E

Eric D.

Hi,

Is there a way to create a timer that would be able to
register the amount of time an application was open?

I read about the 'Timer' function that's part of the
Windows API, but it returns to 0 at midnight. This would
not be a desired result if a user was on the application
for more than 24 hours.

So.... any ideas?

TIA,
Eric
 
J

Jim Allensworth

Hi,

Is there a way to create a timer that would be able to
register the amount of time an application was open?

I read about the 'Timer' function that's part of the
Windows API, but it returns to 0 at midnight. This would
not be a desired result if a user was on the application
for more than 24 hours.

So.... any ideas?

Don't use a form timer. Instead just set a start and stop time when
the main form is opened and closed. The difference between them is the
amount of time the application was open.

Timer are more for doing thing at certain intervals.

- Jim
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top