Hi , im new at this. I am making a program which records the amount of time elapsed. Lets say , you click a button , and it begins to count . The time format I have is in ddhhmm. The program will use the computer's date and time.
For example , say that I am a smoker, I click the button, and I want to see how long I can go without smoking, so then it starts to count. And i want it to still count even when the application is closed. So by the time it passed some days or hours or so , I start up my program , and it will show me the exact time elapsed, by days hours and minutes. Also , when I click the button again , it should save the time elapsed , so I can see the longest time I went without smoking. Similar to a record.
Does anyone know how to do this?
For example , say that I am a smoker, I click the button, and I want to see how long I can go without smoking, so then it starts to count. And i want it to still count even when the application is closed. So by the time it passed some days or hours or so , I start up my program , and it will show me the exact time elapsed, by days hours and minutes. Also , when I click the button again , it should save the time elapsed , so I can see the longest time I went without smoking. Similar to a record.
Does anyone know how to do this?