登录
首页 » C# » c#高精度计时器(精确到1毫秒)

c#高精度计时器(精确到1毫秒)

于 2019-07-13 发布
0 309
下载积分: 1 下载次数: 1

代码说明:

该例子实现了高精度定时器功能,最高定时精度为1ms

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 计算几何——凸多边形判断+点在多边形内判断+求点到直线距离.docx
    计算几何——凸多边形判断+点在多边形内判断+求点到直线距离.docx
    2015-12-11下载
    积分:1
  • 微信框架 WeiXin.Framework 完整源码+实例 非常不错<赞>
    微信框架 WeiXin.Framework 完整源码+实例 非常不错
    2014-04-24下载
    积分:1
  • c# FlowChart实例,基于winform
    简单的工作流程序,可进行二次开发
    2019-12-27下载
    积分:1
  • bbcode 转换成 html 示例源码(亲测通过) discuz 帖子可用
    如果你的bbcode含中文 需将这里改下: public static System.Text.RegularExpressions.Regex OptionRegex { get { //return new System.Text.RegularExpressions.Regex(@"(?[w]*)[s]*=[s]*(?[x25w/:/.-]*)", RegexOptions.Compiled); string strExp = @"(?[w]*)[s]*=[s]*(?[x25wsS/:/.-]*)"; return new System.Text.RegularExpressions.Regex(strExp, RegexOptions.Compiled); } }
    2014-07-18下载
    积分:1
  • 汽车美容管理系统
    汽车美容管理系统简单的功能介绍1客户服务---会员卡绑定服务---会员卡打折服务---无卡普通服务---查看服务记录2会员管理---会员信息管理---新增会员---会员续卡---积分兑换礼品3仓库管理---库存信息管理4员工管理5系统管理
    2014-04-19下载
    积分:1
  • C# 套打Demo
    套打Demo 【核心代码】using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Drawing.Printing;namespace Print_Demo{ public partial class Form1 : Form { public PrintDocument printDt = new PrintDocument(); //打印文档对象 Font printFont; //打印使用的字体 public Form1() { InitializeComponent(); } void printDt_PrintPage(object sender, PrintPageEventArgs e) { float pointX = 10; float pointY = 10; e.Graphics.DrawString("打印内容", new Font("宋体", 16F), Brushes.Black, pointX 60, pointY); e.Graphics.DrawLine(new Pen(Color.Black), pointX, pointY 26,pointX 300,pointY 26); e.Graphics.DrawString("打印内容", printFont, Brushes.Black, pointX, pointY 35); e.Graphics.DrawLine(new Pen(Color.Black), pointX, pointY 56, pointX 300, pointY 56); e.Graphics.DrawString("打印内容", printFont, Brushes.Black, pointX, pointY 65); e.Graphics.DrawLine(new Pen(Color.Black), pointX, pointY 86, pointX 300, pointY 86); e.Graphics.DrawString("打印内容", printFont, Brushes.Black, pointX, pointY 95); e.Graphics.DrawLine(new Pen(Color.Black), pointX, pointY 116, pointX 300, pointY 116); e.Graphics.DrawString("打印内容", printFont, Brushes.Black, pointX, pointY 125); e.Graphics.DrawLine(new Pen(Color.Black), pointX, pointY 146, pointX 300, pointY 146); e.Graphics.DrawString("打印内容", printFont, Brushes.Black, pointX, pointY 155); e.Graphics.DrawLine(new Pen(Color.Black), pointX, pointY 176, pointX 300, pointY 176); e.Graphics.DrawString("打印内容", printFont, Brushes.Black, pointX, pointY 185); e.Graphics.DrawLine(new Pen(Color.Black), pointX, pointY 206, pointX 300, pointY 206); e.Graphics.DrawString("检测结果", printFont, Brushes.Black, pointX, pointY 233); e.Graphics.DrawString("通过", new Font("宋体",22F,FontStyle.Bold), Brushes.Black, pointX 90, pointY 225); e.Graphics.DrawLine(new Pen(Color.Black), pointX, pointY 265, pointX 300, pointY 265); e.Graphics.DrawString("单位名称", printFont, Brushes.Black, pointX, pointY 275); } private void Form1_Load(object sender, EventArgs e) { printDt.PrintPage = new PrintPageEventHandler(printDt_PrintPage); printFont = new Font("宋体", 12F); } private void btnPrint_Click(object sender, EventArgs e) { //PrintDialog printDlg = new PrintDialog(); //printDlg.Document = printDt; //printDlg.AllowPrintToFile = true; //printDlg.AllowCurrentPage = true; //printDlg.AllowSelection = true; //printDlg.ShowDialog(); //printDlg.ShowDialog(); printDt.Print(); } private void btnLook_Click(object sender, EventArgs e) { PrintPreviewDialog printPreview = new PrintPreviewDialog(); printPreview.PrintPreviewControl.Document = printDt; printPreview.ShowDialog(this); } }}
    2021-05-06下载
    积分:1
  • c# settings的用法
    切记范围 选择  
    2014-02-11下载
    积分:1
  • c#驱动cywin执行tcl脚本
    采用cywin方式驱动tcl的执行
    2017-09-27下载
    积分:1
  • 微信公众平台获取用户openid c# asp.net4.0测试可以版本 微信服务号
    微信公众平台获取用户openid c# asp.net4.0测试可以版本 微信服务号 直接上传阿里云 虚拟主机 4.0配置 Global.asax 内的账户 信息直接可用
    2020-03-23下载
    积分:1
  • STM32单片机实现语音控制
    实验器材: 战舰STM32F103开发板V3版本 实验目的: 学习串口的使用(接收与发送) 硬件资源: 1,DS0(连接在PB5)   2,串口1(波特率:115200,PA9/PA10连接在板载USB转串口芯片CH340上面) 实验现象: 本实验,STM32通过串口1和上位机对话,STM32在收到上位机发过来的字符串(以回车换 行结束)后, 原原本本的返回给上位机。下载后,DS0闪烁,提示程序在运行,同时每 隔一定时间,通过串口1输出一段信息到电脑。  注意事项: 1,电脑端串口调试助手波特率必须是115200. 2,请使用XCOM/SSCOM串口调试助手,其他串口助手可能控制DTR/RTS导致MCU复位/程序不运行 3,串口输入字符串以回车换行结束. 4,请用USB线连接在USB_232,找到USB转串口后测试本例程. 5,P4的PA9/PA10必须通过跳线帽连接在RXD/TXD上.
    2020-03-09下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载