rino_2
Dec 30th, 1999, 02:28 AM
I have a maths question just for you. I made a program that works out how long you have been in windows. GetTickCount = the time you have been in windows in MILLISECONDS. So I made my program work out how long you have been in windows in MINUTES. The way I did this is as follows:
There are 1 thousand milliseconds in a second and 60 seconds in a minute so this was the command:
GetTickCount / 60000 (that works out how many minutes you have been in windows)
Now, I wanted to update my program to tell you how long in HOURS you have been in windows. I made a few calculations and this was the command that I came up with.
GetTickCount / 3600000
This was going great until a few minutes before an hour and it changed. Is there somebody out there smart enough to work out the correct calculation to work out how long you have been in windows in HOURS?
Thanks
There are 1 thousand milliseconds in a second and 60 seconds in a minute so this was the command:
GetTickCount / 60000 (that works out how many minutes you have been in windows)
Now, I wanted to update my program to tell you how long in HOURS you have been in windows. I made a few calculations and this was the command that I came up with.
GetTickCount / 3600000
This was going great until a few minutes before an hour and it changed. Is there somebody out there smart enough to work out the correct calculation to work out how long you have been in windows in HOURS?
Thanks