#include#includevoid setTimer(int time){ while(1){ Sleep(time); printf("你好\n"); }}void main(){ setTimer(1500);//参数的单位是毫秒}