07.07.2013, 01:18
Guys i want to make SetTimerEx...To 1 hour how? Is it 30000 or What? give me the seconds/Minutes of 1 hour in SetTimerEx
#define MS_HOUR(%1) 3600000*%1
#define MS_MINUTE(%1) 60000*%1
main()
{
printf("%d", MS_HOUR(5));
printf("%d", MS_MINUTE(1));
}
18000000 60000
Timers are done by milliseconds.
1000 milliseconds = 1 second 60 seconds = 1 minute 60 minutes = 1 hour So lets just calculate 1 hour in milliseconds. 1000 * 60 * 60 = 3600000. |