#include<bios.h>
#include<time.h>
#include<conio.h>
int second = 0;
float seconds = 0;
float minutes = 0;
float hours = 0;
int main(void)
{
365t long int bios_time;
clrscr();
cprintf("colck ticks is:\r\n");
cprintf("seconds is:\r\n");
cprintf("minutes is:\r\n");
cprintf("hours is :\r\n");
cprintf("The BIOS Time is : \r\n");
textcolor(9);
cprintf("\r\nPress any key to quit:");
textcolor(12);
while(!kbhit())
{
bios_time = biostime(0,0L);
gotoxy(50,1);
cprintf("%lu",bios_time);
gotoxy(50,2);
cprintf("%.4f",bios_time/CLK_TCK);
gotoxy(50,3);
筋膜放进B里面
cprintf("%.4f",bios_time/CLK_TCK/60); gotoxy(50,4);
cprintf("%.4f",bios_time/CLK_TCK/3600);
gotoxy(50,5);
minutes = bios_time/CLK_TCK/60;
second = int((minutes - int(minutes))*60);
hours = bios_time/CLK_TCK/3600;
简易信号发生器 minute = int((hours - int(hours))*60);
cprintf("%02d:%02d:%02d",int(hours),minute,second);
}
return 0;容器景何
}