?? clock.c
字號(hào):
#include <8051.h>#include <stdio.h>#include "hw.h"void main(void) { unsigned long ms; unsigned int seconds, oldseconds=ClockTicks()/1000; printf ("Example using the core timer to generate seconds.\n"); while (1) { ms=ClockTicks(); seconds=ms/1000; if (oldseconds!=seconds) { oldseconds=seconds; printf ("%02d:%02d.%02d %ld\n", (int)seconds/3600, (int)(seconds/60)%60, (int)seconds%60, ms); } if (RI) { putchar(getchar()); printf("%ld\n\r", ClockTicks()); } }}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -