windows读取bios RTC时间

此程序在TurboC下编译成功
#include<stdio.h>电机转速传感器
#include<bios.h>
#include<time.h>
#include<conio.h>
int second = 0;
float seconds = 0;
感应钎焊int minute = 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;容器景何
}

本文发布于:2024-09-22 12:31:36,感谢您对本站的认可!

本文链接:https://www.17tex.com/tex/2/246388.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:转速   编译   钎焊   筋膜   电机
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2024 Comsenz Inc.Powered by © 易纺专利技术学习网 豫ICP备2022007602号 豫公网安备41160202000603 站长QQ:729038198 关于我们 投诉建议