Question how to make time work even if the application is closed?

ilinkDizon

Member
Joined
Jul 15, 2013
Messages
9
Location
Caloocan City, Manila, Philippines
Programming Experience
1-3
how to make time work even if the appication or project is not running?
and the time is running...
Pls... help me
count.jpg
the time will run although the application is close
Thanks in advance
 

Lotok

Well-known member
Joined
Jan 17, 2012
Messages
198
Location
Scotland
Programming Experience
5-10
Time is an illusion. - Albert Einstein
Give loads more detail on your problem if this is not what you mean.
When the application closes, you could note the time somewhere. database, file, registry, etc. When it is opened, check if the file exists and if so, calculate how much time elapsed using the time value saved previously.
 
Last edited:

ilinkDizon

Member
Joined
Jul 15, 2013
Messages
9
Location
Caloocan City, Manila, Philippines
Programming Experience
1-3
The previous time is saved in the database.
I tried to calculate the time elapsed but i have some problem.
If the current time or computer time is manually changed by user.

I want to calculate the elapsed time even if the user change the current time.
 

Herman

Well-known member
Joined
Oct 18, 2011
Messages
882
Location
Montreal, QC, CA
Programming Experience
10+
Use the time/date value from the database server, not the one from the computer.
 
Top Bottom