12/01/24 12:34:49.47
void time(void)
{
#define CTMAX 200
static int ct = 0;
// 0 <= ct <= 199
ct %= CTMAX;
mod_10 = ct % 10;
mod_100 = ct % 100;
mod_200 = ct % 200;
mod_500 = ct % 500;
if(!mod_500)
func500ms();
if(!mod_200)
func200ms();
if(!mod_100)
func100ms();
if(!mod_10)
func10ms();
ct++;
}