Why wont this work?
tmill = dbTimer();
if ( tmill > 1000)
{
tsec++;
tmill = 0;
}
if (tsec > 59)
{
tmin++;
tsec = 0;
}
if (tmin > 59)
{
thour++;
tmin = 0;
}
char szh [ 256 ] = "";
strcpy ( szh, "Time: " );
strcat ( szh, dbStr ( thour ) );
dbText ( 600, 10, szh );
char szm [ 256 ] = "";
strcpy ( szm, ":" );
strcat ( szm, dbStr ( tmin ) );
dbText ( 700, 10, szm );
char szs [ 256 ] = "";
strcpy ( szs, ":" );
strcat ( szs, dbStr ( tsec ) );
dbText ( 750, 10, szs );
char szmi [ 256 ] = "";
strcpy ( szmi, "mill: " );
strcat ( szmi, dbStr ( tmill ) );
dbText ( 700, 50, szmi );
Instead of doing anything it is supposed to do, it acts as if mill is seconds, seconds is mins, and mins is hour?