dann11
Full Member level 3
Hi! I am making a timer that counts by second.
my timer ticks every 100ms.
my simply coded my timer as.
with these code, the number increments by 3 secs. can you please help me write the exact equation for it to count exactly per seconds.
my timer ticks every 100ms.
my simply coded my timer as.
Code:
if (oneSec < 10) oneSec = oneSec + 1;
else
{
oneSec = 0;
counter++;
}
with these code, the number increments by 3 secs. can you please help me write the exact equation for it to count exactly per seconds.