#include <stdio.h>
#include <stdlib.h>
int hour,minute,second;
void Update()
{
second++;
if (second == 60)
{
second = 0;
minute ++;
}
if (minute == 60)
{
minute = 0;
hour ++;
}
if (hour == 24)
{
hour = 0;
}
}
void Display()
{
printf("%d 时 %d 分%d秒\n",hour,minute,second);
}
void Delay()
{
int t;
for(t=0 ; t<10000000 ; t++);
}
int main()
{
int i ;
for(i = 0; i < 1000000 ;i++)
{
Update();
Display();
Delay();
}
return 0;
}